Click here to get back home

The title attribute

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
The title attribute D.M. Procida 12-18-2007
| ---> Re: The title attribute Jonathan N. Lit...12-21-2007
|--> Re: The title attribute Jukka K. Korpel...12-19-2007
Posted by D.M. Procida on December 18, 2007, 5:45 pm
Please log in for more thread options
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

Posted by rf on December 18, 2007, 6:32 pm
Please log in for more thread options

message
> What are user agents *supposed* to do with the title attribute?

Check the recommendation:
http://www.w3.org/TR/html401/struct/global.html#adef-title

"Values of the title attribute may be rendered by user agents in a variety
of ways."

It's up to the UA. Don't rely on the title attribute for mission critical
information. Safari, for example, does not always display the information
and when it does it's in the status bar (if you have that switched on).

--
Richard.



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.

Posted by Andreas Prilop on December 19, 2007, 4:16 am
Please log in for more thread options
On Tue, 18 Dec 2007, D.M. Procida wrote:

> 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>

This is pointless. What's the use of this TITLE?
And if the TITLE attribute has real information, it is better to put
it into the normal text.

For an application of the TITLE attribute, see
http://www.unics.uni-hannover.de/nhtcapri/arabic.html6

--
¹ superscript 1 ¼ fraction 1/4 Ð D stroke ð d stroke
² superscript 2 ½ fraction 1/2 Þ Thorn þ thorn
³ superscript 3 ¾ fraction 3/4 Ý Y acute ý y acute
× multiply sign ¦ broken bar

Posted by D.M. Procida on December 19, 2007, 2:06 pm
Please log in for more thread options

> > <h1 title="The headline neatly summarises the story">Zuma wins ANC
> > leadership election</h1>
>
> This is pointless. What's the use of this TITLE?

It provides a commentary on text. In this case, it would be a commentary
on the text for journalism students.

> And if the TITLE attribute has real information, it is better to put
> it into the normal text.

I'm inclined to agree, but mainly because on the whole user agents don't
display title attributes very usefully.

> For an application of the TITLE attribute, see
> http://www.unics.uni-hannover.de/nhtcapri/arabic.html6

That suffers from exactly the issues I pointed out: some browsers won't
display it at all, others will do so after an irritating wait, and you
will only discover it by chance.

What kind of information is do you want to leave to be discovered by
chance?

And yet there is o very good way of presenting information which - like
a commentary or a transliteration - you want to run alongside a main
text, without interrupting the flow of the main text.

Daniele

Similar ThreadsPosted
img title core attribute January 13, 2005, 12:54 pm
Length of title attribute May 27, 2005, 5:02 pm
Can style have a title attribute? January 24, 2008, 12:22 pm
Alt attribute I understand. Title/summary attributes - used for what? June 8, 2005, 10:58 am
What is the different between "title" and "alt" for html tag "img"? October 29, 2004, 12:39 pm
Image in the title January 7, 2005, 4:09 pm
"Relocate" in Title tag May 9, 2005, 6:40 am
alt vs title for img tags August 18, 2006, 2:46 pm
Errors from title tage February 15, 2005, 4:16 am
Entities in alt and title text July 31, 2007, 4:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap