Redundant title text on anchors
-
Hi
My accessibility checker is not happy with the title on the anchor wrapping the page number being the same as the page number:
<a href="https://www.webpage.co.uk/category/news/page/2" title="2" class="page">2</a>
In most cases the title attribute can be removed, otherwise modify it to provide advisory, but not redundant information. Note that the title text may or may not be read by a screen reader and is typically inaccessible to sighted keyboard users.
The are a few possible fixes for this. One would be to prepend “Page ” to the title. Or could possibly “Go to page ” or even an admin generated string.
In fact, it might even better to do one or all of the above but change the title attribute to aria-label – I’m not actually sure what title is really adding.
You could also add aria-label to the prev/next buttons.
I can ping over a patch with the changes I made.
- The topic ‘Redundant title text on anchors’ is closed to new replies.