Last updated on 29 April 2010 by Dani Iswara
Common WordPress themes usually have redundant title attributes. But they are useful for Semantic Data Extractor, tool created by World Wide Web Consortium (W3C).
What is the purpose of semantic tool? From the extractor site:
The aim is to show that providing a semantically rich HTML gives much more value to your code: using a semantically rich HTML code allows a better use of CSS, makes your HTML intelligible to a wider range of user agents (especially search engines bots).
Related to title attribute, there is a contradiction between the Web accessibility and semantic point of view.
Redundant title attribute (Dani Iswara .com) sounds bad for screen reader users. Additional information should be placed inside that element properly. Do not put an important information into it. The (fancy) tooltip is mouse dependant. Therefore, it is not fully accessible. Furthermore, the fact, title attribute usually has the same text as in anchor link.
See on your source code which have
rel="bookmark", e.g. post title and related post section. The semantic tool needs the title attribute. Check this post result. The bookmarkable points only have
So, what is the solution? Semantic or accessible? Do we have to fill the title attribute for semantic purposes?
Updated April 29, 2010: Dominique Hazael-Massieux, one of W3C staff, have updated the Semantic Data Extractor tool. Confirmed by e-mail. Thanks Dom. :)