Bonjour bonjour...

Oh là là....

voilà que j'arrive -non sans peine- au moment très attendu de la validation par le W3C, et là je me casse les dents.
Peut-être que mes termes de recherche n'étaient pas adéquats mais je n'ai pas trouver grand chose de probant ou compréhensible à ce sujet sur le web, donc je viens requérir, une fois encore, votre aide précieuse.

J'ai fait des erreurs de doctype à priori... le w3c hurle (alors que mon doctype est en XHTML 1.0 Strict):

Errors found while checking this document as HTML 4.01 Transitional!

Unable to Determine Parse Mode!

The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:

the MIME Media Type (text/html) can be used for XML or SGML document types
No known Document Type could be detected
No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document.

As a default, the validator is falling back to SGML mode.

No DOCTYPE found, and unknown root element. Aborting validation.

The DOCTYPE Declaration was not recognized or is missing. This probably means that the Formal Public Identifier contains a spelling error, or that the Declaration is not using correct syntax, or that your document is not using a DOCTYPE Declaration.

Without a DOCTYPE Declaration it is not possible to check the validity of your document. Since the document does not start with the root <html> element, automatic fallback to an HTML document type was not performed, and most of the validation process was aborted: only basic markup syntax was checked.

Learn how to add a doctype to your document from our FAQ, or use the validator's Document Type option to validate your document against a specific Document Type.

Byte-Order Mark found in UTF-8 File.

The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.


et je ne comprends pas du tout comment corriger les erreurs... Smiley bawling j'ai essayé différentes choses mais je suis perdue en fait.

quelqu'un pourrait-il m'aider à y voir plus clair ?

Mon doctype est actuellement le suivant, avec ce qu'il y a dans le head en bonus Smiley cligne


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
    <head>
        <meta name="author" content="Auteur" />
        <meta name="description" content="Description" />
        <meta name="keywords" content="mots clés" />
        <meta name="reply-to" content="contact@contact.com<script type="text/javascript">
/* <![CDATA[ */
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
</script>" />
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <meta http-equiv="Content-Language" content="fr" />
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo IGES_GLOB."favicon.ico"; ?>" />
        <script type="text/javascript" src="<?php echo CHEMIN_GALERIE."highslide-full.js"; ?>"></script>
        <script language="Javascript" src="<?php echo CHEMIN_JS."global_highslide.js"; ?>"></script>
        <script language="Javascript" src="<?php echo CHEMIN_JS."global.js"; ?>"></script>
        <link rel="stylesheet" type="text/css" href="<?php echo CHEMIN_GALERIE."highslide.css"; ?>" />
            <!--[if lt IE 7]>
                <link rel="stylesheet" type="text/css" href="<?php echo CHEMIN_GALERIE."highslide-ie6.css"; ?>" />
            <![endif]-->
        <script language="Javascript" src="<?php echo CHEMIN_JS."global.js"; ?>"></script>
        <script type="text/javascript"></script>
        <link rel="stylesheet" href="<?php echo CHEMIN_CSS."global.css"; ?>" type="text/css" media="screen" />         
        <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&language=fr" charset="utf-8"></script>
        <script type="text/javascript">
            google.maps.event.addDomListener( window, 'load', initCarte);                
        </script>
        <title>Titre</title>
    </head>  
<!--[if IE]><![endif]-->
<!--[if lte IE 7]> <body class="ie567"> <![endif]-->
<!--[if gte IE 8]> <body class="ie89"> <![endif]-->
<!--[if !IE]><!-->
<body>

Donc si quelqu'un a une piste, un lien, un éclaircissement, ça m'aiderait beaucoup.

Merci d'avance, et bonne fin de dimanche à tous

Modifié par ClR (17 Jun 2013 - 02:02)