WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Alternative to the Title attribute in Links

for

From: Lovely, Brian (CONT)
Date: Aug 25, 2017 2:03PM


A warning about aria-label (and aria-labelledby): they are greedy. Which is to say, they don't concatenate with other possible accessible name strings. So:


<a href="#" aria-label="Opens in a separate window">edit my details</a>

will just read out as "link opens in a separate window"

You could use aria-described by, like

<a href="/en/home?order=field_data_holding&amp;sort=asc" aria-describedby="link_details" class="active">Data Holding</a>

<div id="link_details"> sort by Data Holding</div>


However, I have had this ominous feeling about the title attribute as well, but in an earlier thread it was established that my mistrust was misplaced. Title is a legitimate tool for constructing an accessible name.