Using this HTML markup, how would you select only the headings contained within the
element?

Advertisement

<header>
<hl>Heading 1</h1>
<h2>Heading 2</h2>
</header>
<h2>Heading 2</h2>

  • header h1, header h2 {…}
  • header h1 + header h2 {…}
  • header h1, h2 {…}
  • h1, h2 {…}
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend