Open this example in the interactive library
Source code
<style>
.demo p strong {
color: #9a3412;
}
</style>
<div class="demo">
<p>Paragraph <strong>emphasis</strong></p>
<strong>Unstyled sibling</strong>
</div>
Style a deep descendant without styling siblings with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo p strong {
color: #9a3412;
}
</style>
<div class="demo">
<p>Paragraph <strong>emphasis</strong></p>
<strong>Unstyled sibling</strong>
</div>