W3C home > Mailing lists > Public > www-validator@w3.org > February 2010

Re: Validator Trouble

From: David Dorward <david@dorward.me.uk>
Date: Thu, 4 Feb 2010 11:35:28 +0000
Cc: <www-validator@w3.org>
Message-Id: <80DFDCFC-2AE0-4102-89E2-E6296FB37DB1@dorward.me.uk>
To: Cory S <veneno-games@hotmail.com>

On 4 Feb 2010, at 02:09, Cory S wrote:

> When checking the FRC Robotics website I'm making (http://www.othsrobotics.ca), I ran into some issues with the validator. As you might be aware, the First Robotics Competition holds a website competition for its teams. One aspect of this competition is to be validated by the W3C validator. However, there are a few issues I think are issues with the validator, and/or don't know how to fix them.
> A few examples of some issues:
> 1) Line 46, Column 35: Attribute "ALIGN" is not a valid attribute. Did you mean "align"?
> This doesn't make any sense whatsoever. As you can see in the source, and in this error message, what I wrote was obviously correct, as it states align!=align, which it obviously is. This problem is seen throughout the document for WIDTH, HEIGHT, etc.
See http://lists.w3.org/Archives/Public/www-validator/2010Jan/0055.html regarding the "Did you mean 'align'" comment.

The align, width and height attributes were deprecated in HTML 4 (which was released in 1997). They do not appear in the DTD you are validating against. Use CSS instead.
> 2) Line 36, Column 7: end tag for element "HEAD" which is not open
> If you check the source, the element <head> was actually open... This also happens with <center> and <param> later in the document.
Due to the way comments in SGML work, you cannot nest them as you are attempting to do. A consequence of this is that something you intend to be comment syntax is being treated as character data and implicitly closing the head and starting the body.

> 3) Line 134, Column 98: general entity "hl" not defined and no default entity
> In the validator, you'll notice that this problem is being mentioned inside of an embedded youtube video url, meaning that it shouldn't be being validated. This happens quite a few times every time I link a youtube video.
Code for including YouTube videos is not except from the rules of what constitutes valid documents. An & character starts an entity. If you want say "&" instead of "Start an entity" then you must use the entity for "&" which is "&amp;".

> 4) Line 173, Column 4: NET-enabling start-tag requires SHORTTAG YES
> When I state <br/>, it finds an error for it, even though it is the correct html code for line break.
No. HTML is not XHTML. XHTML self-closing tag syntax has a different meaning in HTML.
> 5) Line 195, Column 427: non SGML character number 146
> When I state the character " in my text and paragraphs, it finds it an error for some reason.
Your document appears to be encoded using windows-1252. Your server fails to state what character encoding you are using, but your meta tag claims you are using ISO-8859-1. Since windows-1252 and ISO-8858-1 are not identical, you get errors in those areas where they do not match.

> When I try 34& (the html term for " ), it only ends up messing with the page.
"34&" is meaningless in HTML.

David Dorward
Received on Thursday, 4 February 2010 11:36:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:00 UTC