In HTML, you can have empty attributes, without even ="":
<input type="checkbox" selected></input>
However, in XHTML, you need at least an empty string:
<input type="checkbox" selected="selected"></input>
What is the equivalent of the empty HTML attribute in XHTML? Is it an empty string, or the attribute name as a string, or true, or something else?
https://www.w3.org/TR/xhtml1/#h-4.5
Equivalent of the empty HTML attribute in XHTML is attribute name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With