Bonjour tout le monde !
Je n'arrive pas a faire valider une page HTML qui me semble pourtant juste !!!
est-ce que quelqu'un pourrais m'aider ?
voici mon code :
et voici ce que me dit le validateur (validator.w3.org) :
Help Meee !
Merci d'avance
Modifié par Jon (04 Oct 2005 - 19:07)
Je n'arrive pas a faire valider une page HTML qui me semble pourtant juste !!!
est-ce que quelqu'un pourrais m'aider ?
voici mon code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Métamorfoze</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body onLoad="mer()" style="overflow:hidden">
<!-- Table Principale -->
<table class="tableP" cellspacing="0px" id="tableP">
<tr>
<td class="BHG" id="BHG"></td>
<td class="BHC"></td>
<td class="BHD"></td>
</tr>
<tr>
<td class="BGC">
<a href="javascript:ferme()" id="volet">
<img src="images/elements/Menus/flecheg.png" alt="Op/Cl" class="fleche" id="fleche" />
</a>
</td>
<td colspan="2" rowspan="2">
<iframe src="accueil.php" id="iframe" name="iframe"></iframe>
</td>
</tr>
<tr>
<td class="BGB"></td>
</tr>
</table>
<!-- Fin Table Principale -->
<!-- Logo -->
<a href="accueil.php" target="iframe" class="logo">
<img src="images/logo.gif" alt="Logo" />
</a>
<noscript>
<p><b>Votre javascript est désactivé, ce qui vous empêche de voir correctement cette page !</b></p>
</noscript>
</body>
</html>
et voici ce que me dit le validateur (validator.w3.org) :
a écrit :
Result: Failed validation, 2 errors
File: upload://Form Submission
Encoding: iso-8859-1
Doctype: HTML 4.01 Transitional
This page is not Valid HTML 4.01 Transitional!
Below are the results of attempting to parse this document with an SGML parser.
1. Error Line 6 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.
✉
2. Error Line 7 column 45: document type does not allow element "BODY" here.
<body onLoad="mer()" style="overflow:hidden">
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).
Help Meee !
Merci d'avance
Modifié par Jon (04 Oct 2005 - 19:07)