|
Posted by David E. Ross on December 18, 2007, 8:27 pm
Please log in for more thread options On 12/18/2007 2:45 PM, D.M. Procida wrote:
> What are user agents *supposed* to do with the title attribute?
>
> Lynx (Version 2.8.6rel.5) doesn't. I don't know about other text
> browsers.
>
> Most graphical browsers wait about a second before displaying it, so you
> won't see it unless you hover over an item, though iCab at least has the
> kindness to put up a little icon if there's one under the pointer
> straight away. Gecko browsers put the text on one single long line.
>
> All of this renders title attribute text rather less useful than it
> could be, especially in contexts where the user doesn't know in advance
> that there might be useful title text there.
>
> I was thinking of using it to provide a commentary on some text, like:
>
> <h1 title="The headline neatly summarises the story">Zuma wins ANC
> leadership election</h1>
>
> <p title="The basic facts of the story are given in the first sentence">
> Jacob Zuma has defeated South Africa's President Thabo Mbeki to
> win the leadership of the country's ruling ANC.
> </p>
>
> <p title="The report then begins to expand on the facts">
> Mr Zuma won the votes of more than 60% of the delegates at the
> leadership conference to claim victory.
> </p>
>
> But I don't think that it will work that well.
>
> Daniele
Be careful that you don't over-use the Title attribute. Tooltips
popping up all over the screen can be quite annoying.
I use them to give an English translation for a foreign phrase. I also
use them when a link is in an image rather than in text.
--
David E. Ross
<http://www.rossde.com/>
Natural foods can be harmful: Look at all the
people who die of natural causes.
|