I am wondering about the following questions for HTML5
- <br /> OR <br>? Are all elements the same for the answer?
- selected="selected" OR selected?
- Are there any other syntax instances that were true for XHTML/HTML4 that are not for HTML5?
I am wondering about the following questions for HTML5
<br> in HTML5 <br /> in XHTML5
selected, selected="", and selected="selected" are all valid attributes
and
selected/checked/disabledwithout specifying a value ever been valid? – Lèse majesté Oct 27 '10 at 02:59for a long time now while using XHTML. – Metropolis Oct 27 '10 at 03:04
....I knew that. But that wiki page does not say what the answer is for HTML5. I have really not seen a page that does yet. And it appears as though
passes the HTML5 validator. So I am confused. – Metropolis Oct 27 '10 at 03:12
<img>and<br>do not require a closing tag or/>. In XHTML they do. This is regardless of version. – John Conde Oct 27 '10 at 03:18readonlywithout a value, and whileselectedis given a value in most places, they use the shorthand here (scroll down a bit): http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#attr-option-disabled – Lèse majesté Oct 27 '10 at 03:21