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
Offhand, I would say: is not a visible element per se, and it contains sections for semantic (e.g.
) and presentation data (
).
On the other hand, is a block for visible elements, so it can be given a presentation style.
But people do apply styles to the element for a couple cases: (a) because all of its child elements will inherit that style, and (b) in special cases like the scrollbar trick that Jamie Dixon mentioned.