Navigation Structure
Proper navigation structure helps users and search engines understand your site. Learn to create accessible, well-organized navigation.
The Nav Element
Loading HTML Playground...
The <nav> element:
- Marks navigation sections
- Helps screen readers identify navigation
- Can be used multiple times per page
Navigation Lists
Using lists for navigation is semantic and flexible:
Loading HTML Playground...
Benefits of list navigation:
- Semantic grouping of links
- Easy to style with CSS
- Screen readers announce "list of 4 items"
Multiple Navigation Areas
Loading HTML Playground...
When using multiple <nav> elements:
- Add
aria-labelto distinguish them - Common areas: header, sidebar, footer
Dropdown Navigation
Loading HTML Playground...
Nested lists create dropdown menus. CSS and JavaScript handle the show/hide behavior.
Breadcrumb Navigation
Loading HTML Playground...
Breadcrumb best practices:
- Use ordered list (
<ol>) for sequence - Add
aria-label="Breadcrumb" - Mark current page with
aria-current="page"
Skip Links
Loading HTML Playground...
Skip links:
- Allow keyboard users to skip navigation
- Hidden until focused
- Essential for accessibility
Exercise: Build Site Navigation
Create a complete navigation structure with header and footer nav:
Loading HTML Exercise...
Well-structured navigation improves usability, accessibility, and SEO for your website!

