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

<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 UTC