[XHTML] problème validation

Fermé
ApoKps Messages postés 140 Date d'inscription jeudi 25 janvier 2007 Statut Membre Dernière intervention 26 septembre 2008 - 20 mai 2008 à 01:54
glabok Messages postés 131 Date d'inscription samedi 4 août 2007 Statut Membre Dernière intervention 24 avril 2020 - 20 mai 2008 à 11:37
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

      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

1 réponse

glabok Messages postés 131 Date d'inscription samedi 4 août 2007 Statut Membre Dernière intervention 24 avril 2020 40
20 mai 2008 à 11:37
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
<!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.
0