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
What is anchor tag and how can you open an url into a new tab when clicked?
Is colgroup deprecated?
Explain caching in html5 and html?
What is the container or wrapper div?
What is main element in html5?
Differentiate between html and xhtml.
What are the different types of storage in HTML 5?
What is meta tag in html?
What is reset and submit buttons?
Why are meta tags important?
What language is html?
What is the difference between basefont and font tag?
What are types of tags in html?
Are html tags case sensitive?
What is list tag in html?