Using SVGs
<span>
element with the screenreader-only class .sr-only can be a practical approach. This class hides the text visually for sighted users but makes it accessible to screenreaders. In certain cases, it may have an advantage over using an aria-label
on the <a>
element because screenreaders read the text with the correct language and pronunciation preferences.aria-label
was read with a German voice and pronunciation. However, when the text was provided via the .sr-only
class, it was read correctly with an English voice. This behavior also has been documented in NVDA GitHub Issue #16285.role="presentation"
attribute should be added to SVG elements to prevent some screenreaders from announcing them as standalone elements (e.g. “Link, Image, First page”). This ensures they are interpreted as purely decorative and not announced (e.g. “Link, first page”).Using Images
<img>
element is the only child of a link, the text of the alt
attribute is automatically read by screenreaders as the link text. Therefore, the alt
attribute should include a descriptive text that clearly conveys the function of the link (e.g. alt="Next Page, Page 9"
). This method is a best practice as it is natively supported by screenreaders and requires no additional effort.alt
attribute of the image due to technical constraints, an aria-label
on the <a>
element can be used instead to describe the function of the link. However, this solution should only be applied in exceptional cases.Skipping Multiple Pages
aria-label
is not a suitable alternative here, as it cannot be applied to generic elements like <span>
or <div>
.Accessible pagination is more than just a design detail—it provides orientation, simplifies navigation, and greatly improves the user experience, especially for those relying on assistive technologies.
The semantic HTML elements and ARIA attributes presented here create an accessible structure that remains easy to use across all devices, from desktop to smartphone.
Accessible pagination ensures that all users can navigate the web without "getting lost as if reading a book with pages bound out of order." This makes the web not only more inclusive but also more accessible for everyone looking to find content efficiently and directly.
To ensure the proposed solutions deliver on their promise, I conducted tests in different environments:
However, additional testing with other screenreader and browser combinations is recommended to ensure compatibility across a wider range of devices and tools.
With over 15 years of experience as a frontend developer, Kristin brings extensive expertise in designing accessible web applications. She holds a Bachelor of Science in Media Informatics from the University of Applied Sciences Bremen and works in interdisciplinary teams within agile project environments. For more than 5 years, she has been advising colleagues and clients on accessibility—from integration into complex online stores to the implementation and testing of accessible websites.
LinkedIn: @Kristin