W3C correction erreur mais mauvais en anglais

Fermé
louloup - 11 févr. 2009 à 14:08
avion-f16 Messages postés 19252 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 10 février 2025 - 11 févr. 2009 à 16:48
Bonjour,

voila, je suis entrain de me faire mon petit site amateur, et au momment de verrifier si tout etait bon avec le site W3C il me dit ceci:

3 Errors, 3 warning(s) bon ca ca vas je comprend y'a trois truc qui cloche... mais le reste je comprend pas car mon anglais n'est pas génial, pourriez vous m'aidez a comprendre ceci:

- No Character Encoding Found! Falling back to windows-1252.

None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "windows-1252" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.

Before defaulting to windows-1252 the validator also tried to read the content with the following encoding(s), without success: UTF-8.

Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.


-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
the Document Type (HTML 4.01 Transitional) is not in the validator's catalog
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.


-Line 1, Column 47: invalid formal public identifier "HTML 4.01 Transitional": missing //.
<!DOCTYPE HTML PUBLIC "HTML 4.01 Transitional"

-Line 2, Column 0: character "<" invalid: only delimiter ">", delimiter "[", system identifier, "CDATA", "NDATA", "SDATA" and parameter separators allowed.
<html>

Line 2, Column 0: cannot continue because of previous errors.
<html>
A voir également:

1 réponse

avion-f16 Messages postés 19252 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 10 février 2025 4 505
11 févr. 2009 à 16:48
Bonjour, voici les problème :
 - Apparamment, tu ne déclare pas l'encodage (ISO-8859-1 ; UTF-8 ; ...) dans une balise META
 - Ton Doctype n'est pas bon !

Passe-moi le début du code source (jusqu'à la balise <body>), je vais essayer de la faire valider.

Un bon conseil, passe pour le XHTML 1.0 parce que HTML 4.01 Transitional n'est plus vraiment utilisé sur les nouveaux sites d'aujourd'hui.
0