Why is it allowed to send XHTML 1.0 documents as text/html?
Answer Posted / 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 View All Answers
How do you create an html file?
What is html applet?
What are xhtml files?
What is the main function of html?
What does href mean?
How to remove/clear the data from local storage?
What is html6?
What is a tag in english?
How do I center a div?
What is innerhtml in jquery?
How can I specify background images?
What is anchor tag?
What does whatwg stand for in the world of html5?
What does a href stand for?
Is html the only markup language?