Bonjour,
Je suis en train de valider mes pages.
J'obtiens une erreur sur le tag body que je ne comprends pas.
J'ai aussi une erreur sur le tag de fin </html.
Source html :
Erreur w3c:
Merci pour vos lumières.
Luciole.
Modifié par luciole (29 Jun 2005 - 10:59)
Je suis en train de valider mes pages.
J'obtiens une erreur sur le tag body que je ne comprends pas.
J'ai aussi une erreur sur le tag de fin </html.
Source html :
<body id="main" onload="javascript:document.id_critary.USER.focus();">
Erreur w3c:
a écrit :
Line 16, column 90: document type does not allow element "body" here
..._critary'].elements['USER'].focus();">
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).
Line 73, column 6: end tag for "html" which is not finished
</html>
Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.
Merci pour vos lumières.
Luciole.
Modifié par luciole (29 Jun 2005 - 10:59)