Small shortcut, I agree. The <html> is of course the root, but the browser uses the <body> rules as if they were set on the <html>.
"The used values of that BODY element’s background properties are their initial values, and the propagated values are treated as if they were specified on the root element."
We're a place where coders share, stay up-to-date and grow their careers.
Small correction: The “root element” is the
<html>
element, not the<body>
element.Small shortcut, I agree. The
<html>
is of course the root, but the browser uses the<body>
rules as if they were set on the<html>
."The used values of that BODY element’s background properties are their initial values, and the propagated values are treated as if they were specified on the root element."