I'm a bit unclear about the rationale behind using this specific CSS structure:
h2.class-name
It seems like you could simply use .class-name
and apply that class to the h2
element:
<h2 class="class-name">Title thing</h2>
Unless it's necessary when you are unable to modify the HTML. Is that the explanation?:
<div class="class-name">
<h2>Title thing</h2>
</div>
I'm just not entirely clear on why this particular CSS structure is used.