Jump to content

Recommended Posts

hey I'm building a website which is on my computer for testing and I'm trying to make it xhtml 1.1 valid

everything thing i done comes out as valid but i ge tone 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

 

 

they say i can use php to head a header to tell the browser what to use i use this.

 

header("Content-Type: application/xhtml+xml; charset=utf-8");

 

but i still get the same wraning is there any other way to use php to make the mime type validate?

Link to comment
https://forums.phpfreaks.com/topic/64279-xhtml-11-validation/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.