Currently tackling a project for my university course and facing an issue with this section of my html+css code:
h1, h2, h3 {
color: #747d19;
}
.name_date {
color: #861781;
}
<div class="name_date">
<h3>Shean</h3>
<p><i><b>August 3rd, 2018</b></i></p>
</div>
From what I know, a class selector is generally more specific than the element selector. However, in this case, the text "Shean" is displaying using the h3 color rule instead of the .name_date rule. What could be causing this unexpected behavior?