Look at this simple example:
<style>
h1 {
color: red;
}
</style>
<h1>this is the 'h1'.<h2>this is the 'h2'</h2></h1>
I expected the color of the string within the 'h2' to be red, but it is still black.
This has confused me for a while. Why does it happen?