I’ve been tasked with making sure a site my company has built meets WCAG 2 AA. I generally write accessible code, and running automated validators usually only highlights typos. I have recently switched validator however, and the new one is highlighting that many of my links don’t include title attributes. In the past I have only used the title attribute on links when the link text wasn’t entirely self-explanatory by itself.
2 questions:
- Is my past behaviour correct, or should I be using title attributes by default (like alt attributes on images)?
- How important are title attributes for accessibility really? A google around found that they may not even be used by some screen readers.
According to Webaim
The title attribute, by definition, can be used to provide advisory information. It should:
headers, etc.
So essentially you’ve been on the right path. Being more aware of whether or not it is truly accessible is more important than making sure it passes all automatic validators