W3C home > Mailing lists > Public > www-validator@w3.org > July 2004

Re: HELP ME!

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 7 Jul 2004 23:01:40 +0300 (EEST)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0407072256590.7772@korppi.cs.tut.fi>

On Tue, 29 Jun 2004, .:  Stefano Bisetto  :. wrote:

> HELP ME!

Use more descriptive Subject line in future. Many people routinely ignore
messages with a subject like HELP ME! or any subject in all caps.

> Why validator say that there is no attribute "ALT" in my A tags???

It does not.

> <a href="index.htm" alt="Home page" CLASS="menusup" title="Home page"
> name="...

What the validator says is that there is no ALT attribute for an A element
_in the document type definition_. The message is misleading, and this has
been noted a few times, and I think better formulations (like "The
document type definition does not allow attribute ... for element ...")
have been suggested, but not implemented.

On the practical side, you have misunderstood what the ALT attribute means
in IMG elements (it stands for ALTernate text), and you have extended this
misconception to the A element. You already have a TITLE attribute there,
and _that_ is the right way to suggest a "tooltip" effect on mouseover,
which is probably what you want.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Wednesday, 7 July 2004 16:01:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:14 GMT