Why is it that the CSS selector is not picking only the elements inside the parent class, and its rather picking all the tags in the code. Even though it is mention took look inside ".new1 h1, p" CLASS. Is it possible to apply CSS on selected tags inside a class, or do i need to add additional classes on p, h1 tags.
.new1 h1,
p {
color: purple;
text-align: center;
}
<p>This is a paragraph.</p>
<section class="new1">
<p> Hello </p>
<h1> Hi! </h1>
</section>
<section class="new2">
<p> Hello </p>
<h1> Hi! </h1>
</section>