Nouveau poste erreur sur ma page html????help

Résolu/Fermé
kiki28 - Modifié par kiki28 le 18/12/2010 à 18:39
notobe Messages postés 1952 Date d'inscription mercredi 11 novembre 2009 Statut Membre Dernière intervention 8 juillet 2011 - 20 déc. 2010 à 11:28
Bonjour,

Voici ce que me mets w3c comme erreur sur ma page :


Notes and Potential Issues
The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation, or other things affecting the output below. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.

No Character Encoding Found! Falling back to UTF-8.

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 "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.

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
*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 Character encoding declared at document level

No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.

See this tutorial on character encoding for techniques and explanations.

? Top

Validation Output: 1 Error
Line 1, Column 1: end of document in prolog
?
This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty, and report any discrepancy.

Je vous poste mon code


<!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" xml:lang="fr" >
<head>
<title>Bienvenue sur Joelle et Ludovic !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="pagechant" href="pagechant.css" />
</head>

<body>


<div id="en_tete">
<p class="element_tete1"><img src="banniere.gif" alt="bannière"/></p>

</div>

<div id="menu">

<p class="element_menu1"><a href="index.html"><img src="acceuil.gif" alt="acceuil"/></a></p>
<p class="element_menu1"><a href="pagephotos.html"><img src="Photos.gif" alt="photos"/></a></p>
<p class="element_menu1"><a href="pagedevis.html"><img src="Devis.gif" alt="devis"/></a></p>
<p class="element_menu1"><a href="pagecontact.html"><img src="Contact.gif" alt="contact"/></a></p>
<p class="element_menu1"><a href="pageoption.html"><img src="Option.gif" alt="option"/></a></p>
<p class="element_menu1"><a href="pagekaraoké.html"><img src="Karaoké.gif" alt="karaoké"/></a></p>
<p class="element_menu1"><a href="pagechant.html"><img src="chant.gif" alt="chant"/></a></p>


</div>

<div id="corps">

<p>Le chant c'est aussi dans des lieu publiques ou privés à travers des petits concert comme par exemple :</p>
<h3>mariage, anniversaire</h3>
<h3>hôpitaux</h3>
<h3>maisons de retraite</h3>
<h3>cocktails</h3>
<h3>saint valentin</h3>
<p>et bien d'autres endroits proposés.</p>

</div>


</body>
</html>
Je travail avec Notepad++

Merci de m'aider
A voir également:

2 réponses

notobe Messages postés 1952 Date d'inscription mercredi 11 novembre 2009 Statut Membre Dernière intervention 8 juillet 2011 213
18 déc. 2010 à 20:44
Le validateur te crie dessus à cause de l'encodage des caractères.
Il y a bien dans les meta le charset, mais il ne correspond probablement pas à la façon dont est enregistrée la page.

Qu'utilises-tu comme éditeur html ?
Si c'est NotePad++, il faut vérifier dans le menu "encodage" si celui-ci est bien "ANSI", qui correspond au charset iso-8859-1.

Si ce n'est pas le cas, 2 solutions :
- modifier la config de NotePad++ afin d'être en ANSI ;
- ou modifier le charset déclaré dans la page html en UTF-8 avec le meta :
content="text/html; charset=UTF-8" 

au lieu de
content="text/html; charset=iso-8859-1" 


A noter qu'il est préférable de se mettre en UTF-8...
1
OK merci c'est tout bon j'avais aussi oublié de fermer la balise <html>
Donc toute mes pages sont correctes SUPER
Maintenant il me reste encore le plus dur à faire : le formulaire de contact avec envoi sur mon adresse mail sans ouvrir outlock
Il faut dire que je fait çà que depuis un mois j'en ai passé des nuits entière à comprendre le html
maintenant au tour du php.
Par contre si vous avez des tutos pour faire des formulaires de contact je prends
merci encore
0
si je me mets en utf-8 il faut que je change des codes dans ma page ?
0
notobe Messages postés 1952 Date d'inscription mercredi 11 novembre 2009 Statut Membre Dernière intervention 8 juillet 2011 213
20 déc. 2010 à 11:28
Les caractères accentués vont peut-être avoir besoin d'être modifié, oui. Mais pas obligatoirement.

Sinon, pour un formulaire en php, il y a plein de tutos sur le web. Exemple : https://openclassrooms.com/fr/courses/1603881-apprenez-a-creer-votre-site-web-avec-html5-et-css3
0
adresse du site w3c sur lequel je fait vérifier mes pages css et html:
http://validator.w3org/check
0