我们需要在 html 中使用哪种文档类型定义?
DTD 有不同类型,例如严格型、过渡型和等等,哪种 DTD 最常用,为什么?
Possible Duplicate:
What are the different doctypes in html and what do they mean?
HTML DTDs - what's the point?
there are different types of DTD like strict, transitional and etc., which DTD is mostly used in common and why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用的最新 html5 兼容文档类型很简单:
这应该与所有现代浏览器兼容。
对于 HTML4 文档来说,这并不重要。我曾经选择过渡。
The most recent html5-compatible doctype you can use is simply:
This should be compatible with all modern browsers.
For HTML4 document, it doesn't really matter. I used to choose Transitional.
什么是文档类型:
为什么我们需要 DOC 类型:
如果您没有正确声明特定的 doctype,访问者浏览器必须“猜测”(通常通过应用最宽松的可能 doctype 或自己的“怪异”模式 doctype)在较慢的渲染中。
文档类型比较
过渡与严格文档类型
What is a DOCTYPE:
Why we need a DOC type:
If you do not declare a specific doctype correctly a visitors browser must "guess" (usually by applying the loosest possible doctype or a "quirks" mode doctype of its own) resulting in slower rendering.
Comparison of document types
Transitional vs. Strict Doctypes
我们主要只使用此 DTD...
如果您有任何疑问,请检查以下链接
http://www .w3schools.com/tags/tag_doctype.asp
We mostly use this DTD only...
Check the following link if you have any doubts
http://www.w3schools.com/tags/tag_doctype.asp