Can anyone explain to me why can we style the element html
?
What are differences between it and body
?
I usually see tutorials and multi
html is the containing element for the whole document, it contains the which is what is rendered by the browser and
which contains meta information on the page/document you are viewing. It has actually no use to be able to style the html element since it isn't rendered by the browser.
It can however be used to build you css selectors with (html div.dataView { color: red }
for example)