Jump to content

XHTML 1.1 in IE


playmenow
 Share

Recommended Posts

Do you have a web site coded in xhtml 1.1 and it looks so bad in IE? There are many tricks to do this. I'll show 3 (4th is the worst) of them:1. Send your XHTML 1.1 web site as application/xml.2. Add <?xml version="1.0" encoding="iso-8859-1"?> above the doctype.3. Use PHP/ASP/whatever to see if browser supports application/xhtml+xml and send the doctype and meta tag: if YES, XHTMl 1.1 as application/xhtml+xml if NO, XHTML 1.0 Strict as text/html.4. NOT RECOMMENDED: Send XHTML as text/xml...if still not working, as text/html.

Link to comment
Share on other sites

Do you have a web site coded in xhtml 1.1 and it looks so bad in IE? There are many tricks to do this. I'll show 3  (4th is the worst) of them:1. Send your XHTML 1.1 web site as application/xml.2. Add <?xml version="1.0" encoding="iso-8859-1"?> above the doctype.3. Use PHP/ASP/whatever to see if browser supports application/xhtml+xml and send the doctype and meta tag: if YES, XHTMl 1.1 as application/xhtml+xml if NO, XHTML 1.0 Strict as text/html.4. NOT RECOMMENDED: Send XHTML as text/xml...if still not working, as text/html.

what is your question???You shouldn't send XHTML 1.1 as text/html....it violates the w3c specification...use XHTML 1.0 strict instead....IE does not support application/xml
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...