Bonjour,
Je soumets le code source HTML de mon application intranet en Jsp sur
http://validator.w3.org/
Mon doctype est le suivant :
Code :
1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2. "http://www.w3.org/TR/html4/loose.dtd">
Et hormis les warnings, j'ai une erreur que je ne comprends pas trop :
Line 7, Column 62: document type does not allow element "LINK" here.
… <link rel="stylesheet" type="text/css" href="cssstyle.css" />
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).
Est-ce normal ?
Merci.![]()
Partager