|
Posted by Gιrard Talbot on 02/06/06 18:43
Barbara de Zoete wrote :
> On Mon, 06 Feb 2006 03:23:18 +0100, John Salerno
> <johnjsal@NOSPAMgmail.com> wrote:
>
>> Is it recommended to use <abbr> more than once for the same
>> abbreviation on a page? Or should it just be used on the first
>> occurrence?
>
> Think what the element is for. It is to identify an abbreviation. So, if
> you use the same abbreviation more than once in the same page, you still
> mark it up as the abbreviation it is. For example speech browsers could
> try to pronounce Abbr. but could try to spell out <abbr>Abbr.</abbr>.
>
> What you could do is add a title to the start tag of the abbreviation
> element the first time you use a certain abbreviation, and leave that
> out the other occurrences. Like so:
>
> <html lang="en">
> <head>
> <style type="text/css">
> abbr[title] {
> border-bottom:1px dotted maroon;
> cursor:help; }
> </style>
> </head>
> <body>
> <p>The title attribute could be of good value if a web author uses an
> <abbr title="Abbreviation">abbr</abbr>.
For the first occurence, it's possible to do it like this:
<dfn><abbr title="Abbreviation">abbr</abbr> (Abbreviation)</dfn>
Especially if it is clear to the
> visitor that there is something there on hover, this use of the title
> attribute helps visitors really understand your content.</p>
>
> <p>Note though that the selector abbr[title] doesn't work in IE (what
> else is new).</p>
I really must say /want to say that
- IE 7 beta 2 supports attribute selector and
- IE 7 beta 2 also supports <abbr> like it should.
GΓ©rard
--
remove blah to email me
[Back to original message]
|