SitePoint Sponsor |
|
User Tag List
Results 26 to 28 of 28
Thread: Title atribute on <a> element
-
Sep 11, 2009, 16:08 #26
- Join Date
- Mar 2006
- Location
- Yorkshire, UK
- Posts
- 5,893
- Mentioned
- 123 Post(s)
- Tagged
- 1 Thread(s)
I disagree. Very often, the link text and surrounding content can give a complete and accurate description of the link destination. Only when that isn't possible or ideal should link text be used.
Often, link titles simply repeat or flesh out the link text. eg
<a href="about.htm" title="Click here to find out more about our company">About us</a>
doesn't actually give any more information or indication to a visitor than
<a href="about.htm">About us</a>
Given that a high proportion of visitors won't look for/at link titles, if you put anything essential in the title, all you are doing is hiding it from people.
As for improving accessibility, I don't know that it has any significant benefits. Keyboard navigation generally won't display any title attribute text. Screen readers may or may not read it. People with restricted vision may find it difficult or confusing to have a tooltip appear, especially if it has a lot of text in it.
I'm not saying that you shouldn't use the title attribute on links - there are times when it is very helpful to do that - but I really don't think that it is more than a significant minority of times at most.
-
Sep 11, 2009, 16:23 #27
-
Sep 11, 2009, 16:30 #28
- Join Date
- Sep 2005
- Location
- Sydney, NSW, Australia
- Posts
- 16,875
- Mentioned
- 25 Post(s)
- Tagged
- 1 Thread(s)
The greatest use for the title attribute should be on images where you need title="" to correct for the bug in IE6.
Title attributes used elsewhere should only be used where they provide meaningful information (eg. on an <acronym> or <abbr> tag where it can be used to tell people what the acronym or abbreviation means - for example <abbr title="IBM abbreviation for air movement device more commonly known as a fan">AMD</abbr> )Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
Bookmarks