diffsnack
HTML Guess the result Level 7

HTML exercise: Names for screen readers — Which parts does a screen reader skip?

The exercise

Which parts does a screen reader skip?

1<nav aria-label="Breadcrumb">
2 <a href="../">Max Muster</a>
3 <span aria-hidden="true">›</span>
4 <a href="./">Blog</a>
5 <span aria-hidden="true">›</span>
6 <span aria-current="page">
7 Size chart
8 </span>
9</nav>
  1. The links Max Muster and Blog
  2. The menu name Breadcrumb
  3. The current page name
  4. The two › arrows

Solution

Answer: The two › arrows

aria-hidden="true" hides an element from screen readers, so the decorative › arrows are skipped. The links, the menu name from aria-label and the current page from aria-current are still read.

Play this exercise Learn the concept: Names for screen readers