|
Posted by Barbara de Zoete on 02/06/06 10:01
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>. 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>
</body>
</html>
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
[Back to original message]
|