boolean attributes

In XHTML, all attributes have to have values, even if those values are redundant.

For example, you’d often see markup like this:

<input type="text" disabled="disabled" />

In HTML5, attributes that are either "on" or "off" (called Boolean attributes) can simply be specified with no value. So, the above input element could now be written as follows:

<input type="text" disabled>
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +