Content · Web Development · HTML

HTML Active Navigation Links with aria-current

Aria-current communicates which item represents the user's present location, such as the current page in navigation.

1 views Published Oct 19, 2026 Updated Oct 19, 2026 Admin

Aria-current communicates which item represents the user's present location, such as the current page in navigation. The important question is always where the link leads and whether the person reading the page can predict it.

What You Need to Know


It does not automatically style the link or change its destination. You can style the current item with CSS; the state itself helps assistive technologies.

Links are the pathways through a website. The words on a link should help someone choose where to go before clicking it.

Example: See It in Action


Here is a simple example to experiment with. Type it, save the file, and check what the browser displays.

This is a short HTML fragment. To try it as a webpage, put it inside the body element of a complete HTML document.

<nav aria-label="Main navigation">
    <a href="index.html">Home</a>
    <a href="lessons.html" aria-current="page">Lessons</a>
    <a href="contact.html">Contact</a>
</nav>

Let’s Understand the Example


  • An a element becomes a working link when it has an href. Its visible text should tell readers where they will go.
  • Nav identifies a major collection of navigation links.
  • Aria-current identifies the current item in a set, such as the current page in navigation.
  • Aria-label supplies an accessible name when a visible label is unavailable or inadequate.
  • Href contains the destination of a link. A value starting with # points to an id on the same page.

The first example link points to index.html. Check whether that destination exists relative to the document. A link changes where readers go; it does not perform an action such as saving a form.

What Should You See?


You should see a link named “Home”. Selecting it leads to index.html when that destination exists. Try it with the mouse and the keyboard.

Imagine this link is read out of context. Would its text still explain the destination? Rename unclear links before trying to make them look nicer with CSS.

Try It Yourself


  1. Move the current-page marker from Lessons to Home and explain when that is correct.
  2. Save your changes, open or refresh the page, and compare the result with the original example.
  3. Tell a friend what your change did. If you are not sure, undo it, refresh the page, and compare.

Common Beginner Mistakes


  • Putting aria-current="page" on every item in a menu.
  • Avoid dead links, empty href values and clickable-looking text without a real destination.

Key Takeaways


  • Aria-current communicates which item represents the user's present location, such as the current page in navigation.
  • An a element becomes a working link when it has an href. Its visible text should tell readers where they will go.
  • It does not automatically style the link or change its destination. You can style the current item with CSS; the state itself helps assistive technologies.
Share this resourceSend this page to someone who may find it useful.