W3C home > Mailing lists > Public > www-validator@w3.org > September 2003

ALT Attribute with <A HREF> - please check

From: Carsten Möller <C.Moeller@WMCO.de>
Date: Wed, 10 Sep 2003 17:19:07 +0200
Message-ID: <4E34D1EC35ABD711BAD0000475744D5A01A70C@ffwmco>
To: "'www-validator@w3.org'" <www-validator@w3.org>

Good day

i tried to validate http://www.fremo.org/service/angebo_d.htm
(The text is in German)

I got following result:

quote
Below are the results of attempting to parse this document with an SGML
parser. 

Line 64, column 43: there is no attribute "ALT" (explain...). 
  <a href="../module/images/alubein.jpg" alt="Foto eines Flansches"
                                             ^
Line 66, column 4: duplicate specification of attribute "ALT" (explain...).
unquote

The code of the two lines in question reads:
quote
<tr><td>Flansche, 10 cm für hohe Modulkasten<br>
<a href="../module/images/alubein.jpg" alt="Foto eines Flansches"
target="bein"
ALT='Foto eines Flansches' >Foto</a></td><td>Paar</td><td>5,50 EUR</td></tr>
unquote

I intentionally put the second 'ALT' into the code, as the validator
kept complained about the missing one and now i got this illogical result.

As this is no inline image, but a link to an external image
with is described in the text I think the ALT attribute is
not necessary in this context and should be omitted altogether.

Would like to receive your opinion

Carsten Moeller
mailto:webmaster@fremo.org
Hamburg Germany
Received on Wednesday, 10 September 2003 11:34:41 GMT

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