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

Problem with the HTML supplied by w3.org

From: niccolo capanni <nc@comp.rgu.ac.uk>
Date: Wed, 20 Oct 2004 17:15:16 +0100
To: <www-validator@w3.org>
Cc: "Stuart Watt \(cmssnkw\)" <s.n.k.watt@rgu.ac.uk>
Message-ID: <E1CKJ7x-0001sF-EG@frink.w3.org>


Hello,

I used the W3.org validate to check my page and received a validation for
HTML 4.01 strict.

When I inserted the following code you supplied on my page it did not
validate as strict any more!!

This is due to the border="0" attribute you have attached to the image, it
should be style="border:0".

Hope this helps,

Regards,

Niccolo

  To show your readers that you have taken the care to create an
interoperable Web page, you may display this icon on any page that
validates. Here is the HTML you should use to add this icon to your Web
page: 

    <p>

      <a href="http://validator.w3.org/check?uri=referer"><img border="0"

          src="http://www.w3.org/Icons/valid-html401"

          alt="Valid HTML 4.01!" height="31" width="88"></a>

    </p>




 


This page is not Valid HTML 4.01
<http://www.w3.org/TR/1999/REC-html401-19991224/>  Strict!


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

1.	
Line 28, column 72: there is no attribute "BORDER"

	...idator.w3.org/check?uri=referer"><img border="0"

	You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by using
vendor proprietary extensions such as "marginheight" (this is usually fixed
by using CSS to achieve the desired effect instead). 

	This error may also result if the element itself is not supported in
the document type you are using, as an undefined element will have no
supported attributes; in this case, see the element-undefined error message
for further information. 

	How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they are
both allowed in the chosen document type, and/or use CSS instead of this
attribute

 

Niccolo Capanni 

Lecturer 

School of Computing 
FACULTY OF DESIGN & TECHNOLOGY 
THE ROBERT GORDON UNIVERSITY 

 





Received on Wednesday, 20 October 2004 16:19:22 GMT

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