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

Re: How to validate my website?

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 4 Feb 2011 17:08:45 +0200
Message-ID: <2BD00C68C4CD4F60A3335F758FF01A8C@JukanPC>
To: "nathalie estrada" <paulinadeporte@yahoo.co.uk>, <www-validator@w3.org>
nathalie estrada wrote:

> I do not manage to valide http://www.poker-killer.com
> Why?

Mainly because the page contains a mix of HTML 4.01 and XHTML 1.0 notations. 
The two don't live well together, formally speaking. The mix as such is 
mostly harmless except for the important problem that it causes so many 
error messages that any really significant markup errors probably go 
unnoticed.

In this case, it is probably best to move consistently to XHTML 1.0. Most of 
the error messages are caused by lack of quotation marks around attribute 
values; e.g.
lang=en
which is OK in HTML 4.01 but needs to be written as
lang="en"
(or lang='en', but double quotes are common practice) in XHTML.

By XHTML rules, _every_ attribute value must be written in quotation marks.

Other problems include lack of style="..." attribute in some elements where 
it is required by both HTML 4.01 and XHTML 1.0 rules, and the (really 
significant) problem that the id attribute value "title_content" appears 
multiple times. The id attribute values must be unique within a document; it 
is their essence to be unique identifiers, for use in e.g. in linking and in 
scripting to identify one single element.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 
Received on Friday, 4 February 2011 15:09:27 GMT

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