Problème de validation XHTML 1.1 - HTML/CSS - Programmation
MarshPosté le 24-04-2005 à 09:38:47
Bonjour,
Pour un exercice, j'ai essayé de passer un document valide en HTML 4.01 strict en XHTML 1.1 A première vue tout me semble correcte, mais le validateur du W3C ne l'entend pas de cette oreille :
1. Line 237, column 7: end tag for "script" omitted, but OMITTAG NO was specified </html> You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".
2. Line 31, column 0: start tag was here <script type="text/javascript">
3. Line 237, column 7: end tag for "head" omitted, but OMITTAG NO was specified </html>
4. Line 8, column 0: start tag was here <head>
5. Line 237, column 7: "html" not finished but document ended </html>
6. Line 237, column 7: end tag for "html" omitted, but OMITTAG NO was specified </html>
7. Line 5, column 0: start tag was here <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
8. Line 237, column 7: missing marked section end </html>
9. Line 32, column 9: marked section started here <!--/*--><![CDATA[//><!--
Et la page en question :
Code :
<!-- Insertion du fichier contenant l'entête de la page
Ne pas oublier de remplir les champs titre et description-->
<!--déclaration du format d'encodage de la page (XHTML 1.1) et de la langue (français)-->
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Marsh Posté le 24-04-2005 à 09:38:47
Bonjour,
Pour un exercice, j'ai essayé de passer un document valide en HTML 4.01 strict en XHTML 1.1 A première vue tout me semble correcte, mais le validateur du W3C ne l'entend pas de cette oreille :
1. Line 237, column 7: end tag for "script" omitted, but OMITTAG NO was specified
</html>
You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".
2. Line 31, column 0: start tag was here
<script type="text/javascript">
3. Line 237, column 7: end tag for "head" omitted, but OMITTAG NO was specified
</html>
4. Line 8, column 0: start tag was here
<head>
5. Line 237, column 7: "html" not finished but document ended
</html>
6. Line 237, column 7: end tag for "html" omitted, but OMITTAG NO was specified
</html>
7. Line 5, column 0: start tag was here
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
8. Line 237, column 7: missing marked section end
</html>
9. Line 32, column 9: marked section started here
<!--/*--><![CDATA[//><!--
Et la page en question :
Message édité par bepimaco le 24-04-2005 à 14:00:42
---------------
Bepimaco