Bonjour je souhaite valider mon site en Xhtml, mais il me reste 3 erreurs qui viennent du Doctype, je ne comprend pas d'où vient le problème... Si quelqu'un peut m'aider...
Voici le code du Doctype:
Et voici les erreurs:
1.
Error Line 27, Column 2: "DOCTYPE" declaration not allowed in instance.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2.
Error Line 30, Column 56: document type does not allow element "html" here.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
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).
3.
Error Line 27, Column 1: XML Parsing Error: StartTag: invalid element name.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Merci d'avance
Modifié par Elixis (22 Jan 2008 - 13:20)
Voici le code du Doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="PHPeclipse 1.9" />
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<link rel = "stylesheet" href = "../style/style.css" type = "text/css" />
<script type="text/javascript" src="script.js"></script>
<title>Accueil</title>
</head>
Et voici les erreurs:
1.
Error Line 27, Column 2: "DOCTYPE" declaration not allowed in instance.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2.
Error Line 30, Column 56: document type does not allow element "html" here.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
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).
3.
Error Line 27, Column 1: XML Parsing Error: StartTag: invalid element name.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Merci d'avance
Modifié par Elixis (22 Jan 2008 - 13:20)