• 0

Server Mime Type Explanation?


Question

Hi! I'm taking a previous test for a competition I'm in for fundamentals of web design and one of the questions is: "In order for a web browser to most correctly interpret an XHTML document, which MIME type(s) should be sent by the web server when serving the document?" The answers are :

a. text/html

b. application/xml

c. application/xhtml+xml

d. both b and c

Now I figured it was A but it's D. Can anyone expand and explain to me what these mean? Thanks!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

In theory, you should serve xHTML using the application/xhtml+xml MIME-type. You can also use text/xml or application/xml because xHTML is a family of XML languages, so the generic XML MIME type should also work.

In practise, it should usually be served with text/html because IE has issues with application/xhtml+xml.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.