[thelist] differences in alt vs. title attributes and <h#> tags

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Mon Jan 28 12:28:01 CST 2002


Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------



To:   "Thelist (E-mail)" <thelist at lists.evolt.org>
Subject:  [thelist] differences in alt vs. title attributes and <h#> tags


Hi Bob

The key thing is to think semantically - what does an attribute *mean*...
behaviour should follow that.

>NN 6.2 doesn't seem to recognize the alt="what I'm writing" but does
>recognize title="what I'm writing" and MSIE 5.5 recognizes both. Is it
more
>or less compliant to current HTML standards to use either or both within
the
>same tag line? I'm guessing title is more so because it's recognized in
both
>browsers.

What alt means is the alternative text description - what you need if you
can't
see the image. This should be a description of what the image depicts. So
if you're doing an alt for a photo:
http://www.easyweb.co.uk/pics/cuba/011.jpg
it would read something like:
"Closeup of hands rolling a cigar from tobacco on a wooden block."
Or for a logo or icon:
http://news.bbc.co.uk/furniture/nav/lhs_sitepuffs/sport.gif
you might represent the text of the image:
"BBC Sport"

What title means is the title of the image - what does it mean or do?
So for the first image above, your title might be:
"Cigar roller in Cuban cigar factory"
and in the second:
"Link to BBC Sport"

>I've also written some CSS to later include as a .css file when I'm
>finalizing but have noticed that for instance the <h2>what I'm
writing</h2>
>shows up as a rather bold look to it which is fine but NN 6.2 does not
have
>a bold tone to it. Is this because I'm controlling the <h2></h2> tags
>through CSS properties or is this just how NN renders the font?.

If you're controlling through CSS, this shouldn't be an issue for you.
They'll
be much the same on all CSS-obedient browsers.

Cheers
Martin


--------------------- End of message text --------------------

This e-mail is sent by the above named in their
individual, non-business capacity and is not on
behalf of PricewaterhouseCoopers.

PricewaterhouseCoopers may monitor outgoing and incoming
e-mails and other telecommunications on its e-mail and
telecommunications systems.
----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.




More information about the thelist mailing list