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:

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

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...).

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

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
Hamburg Germany
Received on Wednesday, 10 September 2003 11:34:41 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:19 UTC