W3C home > Mailing lists > Public > www-validator@w3.org > June 2009

Re: Attribute "BORDER"... but "border" was used

From: David Dorward <david@dorward.me.uk>
Date: Thu, 4 Jun 2009 11:40:22 +0100 (BST)
Message-ID: <63071.132.185.144.121.1244112022.squirrel@malt.us-lot.org>
To: "Andreas Weiss" <AWe@travelbit.de>
Cc: www-validator@w3.org
<quote who="Andreas Weiss">

> Validation Output:  1 Error
>  1. Error Line 40, Column 59: Attribute "BORDER" is not a valid
> attribute. Did you mean "border"?
>  <a href="001.php"><img src="001.jpg" width="200px" border="0"
> alt="Mercedes Benz CL 600"></a>

> Doctype is HTML 4.01 strict - Source is:

That error message could so with some improvement. The "Did you mean" case
applies only to XHTML (which is case sensitive).

There is no border attribute for images in HTML 4.01 Strict. Use CSS instead.

> 39 <div class="galerie_left">
> 40 <a href="001.php"><img src="001.jpg" width="200px" border="0"
> alt="Mercedes Benz CL 600"></a>
> 41 <a href="004.php"><img src="004.jpg" width="200px" border="0"
> alt="Mercedes Benz CL 600"></a>
> 42 </div>
>
> I guess, my code is OK. And if not, the validator should find the error
> in all the lines. Bug or feature? ;-)

There is a feature which avoids highlighted repeated errors.

Incidently, although it isn't a validity error, you have a conformance
error in that the width attribute takes either an integer (number of
pixels) or a percentage. Having "px" is an error. HTML is not CSS.

(Please direct responses to www-validator and not directly to me, thanks)

-- 
David Dorward
Received on Thursday, 4 June 2009 10:40:58 GMT

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