- For XHTML,
<input type="text" disabled="disabled" />is the valid markup. - For HTML5,
<input type="text" disabled />is valid and used by W3C on their samples. - In fact, both ways works on all major browsers.
<input type="text" disabled="disabled" /> is the valid markup.<input type="text" disabled /> is valid and used by W3C on their samples.