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?
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.
Sign up to join this communityI am wondering about the following questions for HTML5
<br>
in HTML5 <br />
in XHTML5
selected
, selected=""
, and selected="selected"
are all valid attributes
selected
/checked
/disabled
without specifying a value ever been valid?
– Lèse majesté
Oct 27 '10 at 2:59
readonly
without a value, and while selected
is given a value in most places, they use the shorthand here (scroll down a bit): whatwg.org/specs/web-apps/current-work/multipage/…
– Lèse majesté
Oct 27 '10 at 3:21