Bonjour,
J'ai utilisé W3C pour m'aider à réctifié mes erreurs et voilà ce que cela donne :
95 errors
Et je ne comprend pas ces erreurs alors les voilà :
Line 28 column 104: document type does not allow element "a" here.
...ref="index.php" style="color:#2313ec">Accueil</a> |<a href="reco.php" style="
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).
Une autre :
Line 45 column 30: document type does not allow element "span" here.
rub1 = ' <span class="close"><a href="">Final Fantasy</a></span><br/>';
Line 45 column 70: document type does not allow element "br" here.
..."close"><a href="">Final Fantasy</a></span><br/>';
Line 46 column 30: document type does not allow element "span" here.
rub2 = ' <span class="close"><a href="affiliation.php">Affilié</a><br/> <a
Ensuite, il m'inscrit ceci :
# Line 79 column 5: "DOCTYPE" declaration not allowed in instance.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3org/TR/xhtml1
✉
# Error Line 80 column 55: document type does not allow element "html" here.
<html xmlns="http://www.w3.org/1999/xhtml"xml:lang="fr">
✉
# Error Line 83 column 6: end tag for "head" which is not finished.
</head>
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 which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
Ce code qui d'après W3C est situé ligne 79, je pense qu'il parle du menu 1 et 2. Cela veut-il dire que je ne dois pas mettre de doctype,... sur mon fichier menu?
Voici le code du menu :
- Code: Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"xml:lang="fr">
<head>
<link rel="stylesheet"media="screen"type="text/css"title="css"href="CSS/menu.css"/>
</head>
<body>
<center><a href="javascript:go(1)"><span class="menu">Jeux video</span></a><br>
<DIV ID="rubrique1" STYLE="position:relative"></DIV>
<a href="javascript:go(2)"><span class="menu">Argent</span></a><br>
<DIV ID="rubrique2" STYLE="position:relative"></DIV>
<a href="javascript:go(3)"><span class="menu">Casino</span></a><br>
<DIV ID="rubrique3" STYLE="position:relative"></DIV></center>
</body>
Et j'ai un include dans ma page index.
Avec ce que vous allez me dire, je vais essayer de régler le reste tout seul. Je suis novice comme je l'ai déjà dit mais je trouve cela dur et assez long surtout si l'on veux faire un bon site. En tout cas ce forum vaut le coût!