Understanding Inheritence

When you style an HTML tag, is it correct that all of its children inherit from it?

If so, then if I style <HTML> what is affected?

What about styling <BODY>?



I would imagine styling the html tag would cascade but I’ve never tested it. Everybody puts the things your talking about on the body tag. And yes some things will cascade but not all. Things like font size and font type and line height will. background color, margin, height, etc will not. Use or at least look at my initial CSS to see a typical setup. http://www.visibilityinherit.com/code/initial-css-settings.php. And initial HTML http://www.visibilityinherit.com/code/initial-html-settings.php