is it good Coding Practice to add style to the <html> tag of a web document?why should you not style the <html> tag of a web document?I ask this because of this answer on a StackOverflow question.Personally I don't think this is good coding practice.  is there a WC3 standard that says this is good/bad?
Styling the HTML tag in a web document
html;css
There's the matter of cross-browser inconsistencies between the <html> tag and the <div> tag, with the <div> having more consistent behavior. The w3c recommends that you style the <body> tag rather than the <html> tag. Much of this again has to do with modern browser behavior:Many web developers do not understand the difference between applying  style to the body element versus the html element. Most of the time  these authors will apply style only to the body element; when that's  not sufficient, they'll spam all sorts of styles on both html and body  until the page happens to look correct.The confusion is understandable. In the beginning, both were treated  similarly, with (now-deprecated) attributes like bgcolor being applied  to the body tag, affecting the whole page.This article attempts to enlighten you, Web Developer, to fully grok  how these two elements are used in modern web browsers.