How to write Semantic CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateWeb DesignUI9 min

About this video

Explains why class-based CSS selectors can be replaced with semantic selectors tied to HTML structure and state. Walks through a navigation example, a hamburger menu and tabs, and how to pick appropriate aria and role attributes.

What you’ll learn

  • Replace arbitrary class names with semantic CSS selectors
  • Style navigation and tab components using semantic HTML and ARIA state
  • Choose appropriate role and aria attributes for interface elements