[XHTML] problème validation
ApoKps
Messages postés
140
Statut
Membre
-
glabok Messages postés 139 Statut Membre -
glabok Messages postés 139 Statut Membre -
Bonsoir à tous,
j'ai validé une des pages de mon site, cependant j'ai un problème:
j'ai cet avertissement là que je n'arrive pas à comprendre
voilà mon doctype
c'est pas grand chose, mais quitte à le faire bien, autant que ça le soit jusqu'au bout ;)
Merci beaucoup d'avance :)
ApoKps
j'ai validé une des pages de mon site, cependant j'ai un problème:
j'ai cet avertissement là que je n'arrive pas à comprendre
Warning Conflict between Mime Type and Document Type
The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml
Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:
* If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML.
* You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
* If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.
voilà mon doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
c'est pas grand chose, mais quitte à le faire bien, autant que ça le soit jusqu'au bout ;)
Merci beaucoup d'avance :)
ApoKps
A voir également:
- [XHTML] problème validation
- Pb retour sur site marchand après validation du paiement - Forum Consommation & Internet
- Temps validation annonce le bon coin - Forum Réseaux sociaux
- Excel validation des données liste - Guide
- Commande en cours de validation fnac - Forum Réseaux sociaux
- Annonce bon coin bloqueé a la verification,QUE Faire - Forum Réseaux sociaux
1 réponse
Dans ton doctipe tu dit "attention je fait du XHTML 1.1", et tout de suite après tu commence a parler en xml en francais.
met
et tu n'auras plus d'avertissement.
met
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
et tu n'auras plus d'avertissement.