J'ai lu les articles de Openweb.org, ça a l'air bien expliqué, mais il y en a beaucoup à lire et je ne suis pas arrivé au bout.
Quoiqu'il en soit, j'ai déjà un site, mais qui ne passe pas avec W3C.
Donc, j'en ai fait un autre nettement plus compact pour les essais de validation.
Si qq pouvait me dire pourquoi ça ne passe pas avec W3C, ce serait sympa.
Soit dit en passant, W3C me dit :
CODE
# Line 21, Column 73: document type does not allow element "META" here.
...type" content="text/html; charset=iso-8859-1">
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
# Warning Line 29, Column 1: unclosed end-tag requires SHORTTAG YES.
<div id="header">
The construct </foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers.
Or, je n'ai aucun "<br />" dans tout le site ???...type" content="text/html; charset=iso-8859-1">
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
# Warning Line 29, Column 1: unclosed end-tag requires SHORTTAG YES.
<div id="header">
The construct </foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers.
Là, je ne comprends plus !
L'adresse du site à valider est : Site d'essai
D'autant plus que W3C me signale des erreurs à plusieurs DOCTYPE or qu'il n'y a que "index.php" qui contienne le DOCTYPE :
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Je n'ai mis que ça parce qu'il y a trop d'avis sur tel ou tel DOCTYPE !
Merci de votre aide.
