Navigation Menus
๐ Covered in this chapter:
Semantic <nav> Tag ยท List Navigation Structure ยท Active Link State (aria-current) ยท Breadcrumbs ยท Skip Navigation Links ยท Accessible Dropdown Markup
Welcome to Phase 3 (Chapter 8): Navigation Menus! Professional web applications require structured navigation systems. In this chapter, we master the semantic
<nav> wrapper, list-based navigation, active link state marking (aria-current="page"), breadcrumbs, skip navigation links, and accessible dropdown menu markup.
1Semantic Navigation & Active Link Marking
HTML โ Accessible Navigation Bar
โถ Run in HTML Editor
<nav aria-label="Main Navigation">
<ul style="display:flex; gap:15px; list-style:none; padding:0;">
<li><a href="/" aria-current="page" style="color:#f97316; font-weight:bold;">Home</a></li>
<li><a href="/tutorials">Tutorials</a></li>
<li><a href="/contact">Contact</a></li>
</ul>
</nav>
2Breadcrumb Navigation & Skip Links
HTML โ Breadcrumbs & Skip Link
โถ Run in HTML Editor
<!-- Skip to Main Content Link -->
<a href="#main-content" class="skip-link">Skip to Main Content</a>
<!-- Breadcrumb Navigation -->
<nav aria-label="Breadcrumb" class="breadcrumb">
<a href="/">Home</a> ›
<a href="/blog-html.html">HTML</a> ›
<span aria-current="location">Navigation Menus</span>
</nav>
โ Frequently Asked Questions (FAQ)
Q1: Why should navigation links always be placed inside an unordered list (<ul>)?
Enclosing links inside a <ul> allows screen readers to announce the total number of navigation items (e.g. "List of 4 items") to visually impaired users before reading.