Why is it allowed to send XHTML 1.0 documents as text/html?



Why is it allowed to send XHTML 1.0 documents as text/html?..

Answer / guest

XHTML is an XML format; this means that strictly speaking it
should be sent with an XML-related media type
(application/xhtml+xml, application/xml, or text/xml).
However XHTML 1.0 was carefully designed so that with care
it would also work on legacy HTML user agents as well. If
you follow some simple guidelines, you can get many XHTML
1.0 documents to work in legacy browsers. However, legacy
browsers only understand the media type text/html, so you
have to use that media type if you send XHTML 1.0 documents
to them. But be well aware, sending XHTML documents to
browsers as text/html means that those browsers see the
documents as HTML documents, not XHTML documents.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What is website storage?

0 Answers  


Can I just put the XML declaration on top of existing HTML documents? Can I intermix HTML 4.01 and XHTML documents?

1 Answers  


What is the use of <span> tag?

0 Answers  


What are grouping elements in html?

0 Answers  


What is the difference between hr and br tag?

0 Answers  






How do I create a link that sends me email?

0 Answers  


My hyperlink or image is not displaying correctly, what is wrong with it?

0 Answers  


What is the sessionStorage Object in html5 ? How you can create and access that?

0 Answers  


What is the relation between xhtml and http?

0 Answers  


How many types of list tag are using in html?

0 Answers  


Which type of video formats are supported by html5?

0 Answers  


Why is html important?

0 Answers  


Categories