login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

What with the web being all about links, you would think... know about the title attribute, but I rarely see it. For... know, all links can have a title, specified by the title... <a> tag. This is in addition to whatever link text you s...
Not all lin

Day 14: Adding titles to links - Dive Into Accessibility
http://diveintoaccessibility.org/day_14_adding_titles_to_links.html

Categories

/Channels/HCI stuff

[ go to category ]

/Channels/techie/web development

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

What with the web being all about links, you would think more people would know about the title attribute, but I rarely see it. For those who don't know, all links can have a title, specified by the title attribute of the <a> tag. This is in addition to whatever link text you specify. The title of a link generally shows up as a tooltip in visual browsers, but it can be presented in non-visual browsers as well.

Not all links should have titles. If the link text is the name of an article, don't add a title; the link text itself is descriptive enough. But if you read the link text by itself, out of context, and can't figure out what it points to, add a title.

HTML

<p class="firstparagraph">What with the web being all about links, you would think more people would know about the <code>title</code> attribute, but I rarely see it. For those who don't know, all links can have a title, specified by the <code>title</code> attribute of the <code>&lt;a&gt;</code> tag. This is in addition to whatever link text you specify. The title of a link generally shows up as a tooltip in visual browsers, but it can be presented in non-visual browsers as well.</p> <p>Not all links should have titles. If the link text is the name of an article, don't add a title; the link text itself is descriptive enough. But if you read the link text by itself, out of context, and can't figure out what it points to, add a title.</p>