Text, Links & Navigation · 8 min read · Beginner
Lists & Accessible Navigation
Choose between unordered, ordered, and description lists, and build accessible navbars, breadcrumbs, and skip-to-content links.
What you'll learn
- Use <ul>, <ol>, and <dl> (description lists) for the right kind of list
- Mark the active page in navigation with aria-current="page"
- Build accessible breadcrumb trails and skip-to-content links
Choosing the Right List
- Unordered list (
<ul>): Order doesn’t change the meaning (e.g., navigation links, feature bullets). - Ordered list (
<ol>): Sequence matters (e.g., recipe steps, top-5 rankings, breadcrumbs). - Description list (
<dl>): Key-value pairs (<dt>term +<dd>description), great for glossaries and metadata!
Accessible Navigation Patterns
- Wrap major link groups in
<nav aria-label="...">. - Mark the current page link with
aria-current="page"so screen-reader users immediately know where they are. - Include a Skip to content link (
<a href="#main-content">) as the very first focusable element on the page so keyboard users can jump past long navbars.
Fill-in-the-Blank Exercise
Accessible Breadcrumb & Active Link
Complete the breadcrumb landmark and mark the current page accessibly.
< aria-label="Breadcrumb">
<>
<li><a href="/">Home</a></li>
<li><a href="/courses/html" ="page">HTML</a></li>
</ol>
</nav>Try It Yourself
Breadcrumbs + Description List Glossary
Live Result
Check Your Understanding
Score: 0 / 1
1. Which HTML list element is designed for term-and-definition (key-value) pairs?
Study Workspace
Finished this lesson?
Your progress is saved locally in your browser, no account needed.