Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: {XHTML} 1 warning(s)---validator.w3.org
Forum PHP.pl > Forum > Przedszkole
Libi
Mam problem podczas testów strony pojawia mi się blad:

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.

LInk:
http://validator.w3.org/check?uri=http://8...ine&group=0

Link strony(tylko gdy moj komputer jest włączony):
http://85.31.230.167/index2.php

co powinienem zrobić by to poprawić jestem otwarty na pomysły... smile.gif

Pozdrawiam
wert1
  1. Conflict between Mime Type and Document Type
  2.  
  3. 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
  4.  
  5. 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:
  6. 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.
  7. You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
  8. 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.
Libi
Jesteśmy w Polsce więdz prosił bym o ile macie coś pomuc to piszcie po Polsku i na temat... smile.gif
Pilsener
Cytat
pomuc
- nie piszemy po polsku, bo mało kto zna ten język, a angielski zna prawie każdy. Wysyłasz dokument do przeglądarki jako text/html, co jest niezalecane dla standardu XHTML 1.1 strict. Zalecany typ dla tego standardu to application/xhtml+xml. Jeśli masz taki typ ustawiony w head a zwraca błąd, to musisz pokombinować z rozszerzeniem plików lub konfiguracją serwera.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.