1. K-State home
  2. »DCM
  3. »Web Services
  4. »CMS
  5. »Best Practices
  6. »Use the title attribute only for additional information

Use the title attribute only for additional information

All HTML elements have a title attribute that can contain text that is displayed as a tooltip when the mouse hovers over that element or it receives focus. This attribute should not be used to provide content that is already available, such as the link text for a hyperlink or the alt text of an image.

Duplication produces visual clutter for sighted users and audio clutter for people using screen readers.

Problem examples

Hover over the link and notice that the tooltip that appears just duplicates and obscures the link text.

Screen readers will read the link text, then the word "link" (or "visited link" if the page has been visited previously) and then the title text.  In other words, a screen reader will read "webpage best practices link webpage best practices".

To fix this error

Remove the title attribute.