Length 7:03How to write Semantic CSS
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










