HTML section elements are a lie (sort of)

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI8 min

About this video

Explains that the HTML section element carries no inherent semantic meaning, and shows how to give it one by adding a heading and an accessible label so it is exposed as a region landmark. Aimed at developers who already write HTML and CSS.

What you’ll learn

  • Explain why the section element has no built-in semantic meaning
  • Make a section a labelled region landmark with aria-labelledby
  • Choose between section, main, aside and nav for page structure