Re: How to validate my website?

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 UTC