sách gpt4 ăn đã đi

html - 使用带有 "text/html"MIME 类型的 XHTML 1.1 文档类型而不是 HTML 文档类型是否有优势?

In lại 作者:太空狗 更新时间:2023-10-29 14:09:05 24 4
mua khóa gpt4 giày nike

XHTML 1.1 旨在与“application/xhtml+xml”MIME 类型一起使用。然而几乎没有人这样做,因为 IE 不能正确处理“application/xhtml+xml”MIME 类型,而且严厉的错误处理被认为对用户不友好。

如果我们的网站一直使用“text/html”MIME 类型,那么使用 XHTML 1.1 doctype 比 HTML4 或 HTML5 有什么优势吗?

câu trả lời hay nhất

参见 this 8-year-old discussion of this very topic ,这导致 this in-depth article .简而言之:这样做有thiếu sót。不要这样做。

执行摘要,来自文章:

If you use XHTML, you should deliver it with the application/xhtml+xml MIME type. If you do not do so, you should use HTML4 instead of XHTML. The alternative, using XHTML but delivering it as text/html, causes numerous problems that are outlined below.

关于html - 使用带有 "text/html"MIME 类型的 XHTML 1.1 文档类型而不是 HTML 文档类型是否有优势?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4739134/

24 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress