JSFiddle - React, Tailwind, and code Playground

CSS Essential Training: lynda.com - Descendant Selectors

by Pritam Bohra

HTML

<!-- 
1. Select all the 'h2' elements on the page.
2. Select the 'h2' only within the 'section' element.
3. Select the 'h2' in anywhere within the 'main' element. 
-->
<header>
  <h1>header h1</h1>
  <h2>header h2</h2>
</header>
<main>
  <section>
    <h2>section h2</h2>
  </section>
  <article>
    <h2>article h2</h2>
  </article>
</main>