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>
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.