View Single Post
  #2 (permalink)  
Old 08-03-2007, 04:52 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 246
H2o is on a distinguished road
Default Re: How many of you are using XHTML?

1. XHTML must be served with an XML MIME type, such as application/xml or application/xhtml+xml.

2. HTML must be served as text/html.

It is the MIME type that determines what type of document you are using. If you use attempt to send XHTML as text/html, you are actually just using HTML, possibly with syntax errors.

Technically, according to the spec, XHTML 1.0 is allowed to be served as text/html. But, due to the above reason, such a document is considered to be an HTML document, not an XHTML document.
__________________
H2O

Without us, no one can survive..
Reply With Quote