I was checking the view source of the site http://mothereffinghsl.com/ . It was coded by Paul Irish
In the code the id of the html elements are not enclosed in quotes for few elements. For other elements the id is enclosed in quotes. Is this a good practice. Is it a mistake or purposefully omitted? I dont think a person like Paul has overlooked it.
<div id="main" role="main">
<h1>Mother-effing <span>hsl()</span></h1>
<canvas width=360 height=100><a href="http://noyoueatabagofdicks.com/">your browser doesnt support canvas.</a></canvas>
<span id=loading>one sec, bro.</span>
<label id=sat>Saturation</label>
What are your thoughts?
Edited after accepting the answer
Conclusion:
In html5 quotes are not necessary, but recommend for reasons mentioned in the comments.
Also its NOT a good practice to use quotes for some attributes and not for some other even though it is supported.