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


Please Help Members By Posting Answers For Below Questions

What are Web Workers?

509


What can you do with html5?

448


What is the image tag?

435


How we can create multi colored text in a webpage?

447


How can I include comments in html?

469






What are Tags?

507


Is colgroup deprecated?

461


Which tag holds all of a webpages visible html?

454


What are empty elements?

445


What is a HTML helper?

499


what is the new structural elements in html5?

487


What is the purpose of html?

497


How can we embed Video in HTML 5?

485


What purpose do Work Workers serve and what are some of their benefits?

472


How is xhtml better than html?

455