Many of us have used the HTML element to define certain rules in CSS, even adding a background to it. Never have I heard that it's not okay. I do know older versions of IE (below 6, if I recall correctly) have some inconsistency hiccups, but other than that I fail to understand why that may not be done?
Code:
html, body {margin:0; padding:0;}
Many of us use that constantly, don't we?
Code:
html {background:url(..);}
I use that sometimes to avoid adding another division to my HTML document.
If the two samples above are fine, then surely giving the HTML document an ID is fine too?
Is it wrong to do because the W3C does not explicitly state it's okay?
Bookmarks