开发者

Firefox 4.0 does not show type to be "application/xhtml+xml"

I have the following code.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" >开发者_JAVA技巧
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<title>title</title>
<link rel="stylesheet" href="style.css" />
<script src="script.js" type="javascript"></script>
</head>
<body>
<p>this is a paragraph</p>
</body>
</html>

When I load the page in Firefox 4.0, click on Tools > Page info, it always shows the Type="text/html". Does this mean the the document is being served with the MIME type of text/plain. If so, how do I serve it with the MIME Type of application/xhtml+xml?

Thanks in advance.


It means the document was served with the MIME type of text/html.

To serve it with the MIME Type of application/xhtml+xml you will need to configure your web server to do so.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜