Hi I have a scenario where I have to style a h3
element based on parent div
class
Example:
<div class="First">
<p>This is sample text</p>
</div>
<div class="Second">
<h3>This is sample header</h3>
</div>
Now what I want to do is if there is a p
tag inside class named First, I want to change the style of h3
tag of second class.