1

yop!

mon pb est tout bete : je souhaite faire valider mon site par

HTML : http://validator.w3.org/
CSS : http://jigsaw.w3.org/css-validator/

pour les CSS, pas de pb, g corrigé totues les erreurs

pour le HTML, il me sort le bp suivant :

Line 17, column 7: end tag for element "HEAD" which is not open
</head>
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occured in a script section of your document, you should probably read this FAQ entry.

Line 18, column 6: document type does not allow element "BODY" here
<body>
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).

le scrit concerné est le suivant :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>...</title>
<meta name="robots" content="..." >
<meta name="Title" content="..." >
<meta name="Description" content="..." >
<meta name="Keywords" content="..." >
<meta name="Author" content="..." >
<meta name="Reply-to" content="..." >
<meta name="Copyright" content="..." >
<meta name="Identifier-URL" content="..." >
<meta name="Revisit-after" content="..." >
<meta http-equiv="Content-Type" content="..." >
<link rel='stylesheet' href='./style/classic/style.css' type='text/css'/>
</head>
<body>
Quelqu'un surait comment corriger ces 2 erreurs ?
Ancien pseudo : lolo

2

Les <meta> ne sont pas fermées, tu peux rajouter "/" à la fin comme tu l'a fait pour <link>

3

quand je fais ca, il ne me valide plus les méta
Ancien pseudo : lolo

4

lol g trouvé c t exctament l'invers : il ne faut pas fermer les balises unique (<link > et autres) smile
g retirer le / ds mon link et ca a marché smile j comprend pas la, mais bon, maintenant ma page est valide... ouf ! g t parti avec plus de 200 erreurs smile smile smile
Ancien pseudo : lolo

5

c'est pas normal du tout neutral

6

voivi l'explication :

http://validator.w3.org/docs/help.html#faq-linkandmeta

Why doesn't the validator like my <link ... /> or <meta ... />?

HTML is based on SGML and uses an SGML feature (called SHORTTAG) (note that this is not the case with XHTML).

With this feature enabled, the "/" in <link ... /> or <meta ... /> already closes the link (or meta) tag, and the ">" becomes some regular text, which is not allowed in the <head> element. Since </head><body> is optional in HTML (again, not in XHTML), it is silently inserted, thus head-only elements like meta and style as well as "</head>" and "<body>", which may appear only once, become false.

(explanation courtesy of Christoph Päper)
Ancien pseudo : lolo

7

putain c'est horrible sick

8

en fait g pa trop compris... tu pourrais m'eclairer ?
Ancien pseudo : lolo

9

Bah ca vient que c de l'HTML et non pas du XHTML
le XHTML (doit etre parsable avec un parser XML) donc les balises <foo /> sont comprises
mais pas pour le HTML

pour passer en xhtml:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> 

10

Oui, ça passe sans aucun problème en XHTML.
Je suis tel la fleur du lotus.
Bien que naissant de la boue,
aucune boue n'y adhère.

11

ok ok smile mici
Ancien pseudo : lolo