Bonjour, je souhaite valider les pages de mon futur site en XHTML1.1 Strict.
Voici un template de base avec le bon 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Document sans nom</title>
</head>
<body>
</body>
</html>
Lorsque je valide cette page au w3c, j’ai l’avertissement suivant
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
J’ai donc créer un nouveau type de document dans le manager : application/xhtml+xml J’ai associéce nouveau type de document à ma page que je teste. Sans succès. J’ai toujours le même avertissement.