有没有任何优点使用HTML 5 Doctype`<!DOCTYPE html>`没有使用HTML 5标签? [英] Are There Any Pros to Use HTML 5 Doctype `<!DOCTYPE html>` Without Using HTML 5 Tags?

查看:247
本文介绍了有没有任何优点使用HTML 5 Doctype`<!DOCTYPE html>`没有使用HTML 5标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使我没有使用任何新的HTML 5标签,是否有任何使用HTML 5 doctype <!DOCTYPE html> 即使我没有使用任何新的HTML 5标签,用HTML 5 doctype替换XHTML doctype是否有什么好处?

Are there any pros to use the HTML 5 doctype <!DOCTYPE html>, even if I am not using any new HTML 5 tags? Are there any benefits to replacing the XHTML doctype with the HTML 5 doctype, even if I am not using any new HTML 5 tags?

HTML 5 doctype可以创建问题如果我使用任何与我的网站相关的XML,或使用HTML 5用于任何A级浏览器的网站开发功能的术语?是否支持所有桌面和移动浏览器?

Can the HTML 5 doctype create problems in terms of functionality if I am using anything XML related with my site, or using HTML 5 for web development with any A-Grade browser? Is it supported in all desktop and mobile browsers?

或者,现在,在2015年之前坚持使用XHTML Doctype是否好?

Or, for right now, is it good to stick with the XHTML Doctype until 2015?

推荐答案


即使我不使用任何新的HTML 5标签,是否有任何使用HTML 5 doctype的优点?

Is there any pros to use HTML 5 doctype even if i'm not using any new HTML 5 tag?

少打字。

就是这样。

不使用HTML5 doctype。有了这个doctype,你说你的文档符合规范,仍然是一个移动的目标。 IMO:等待规格完成并验证过程受限。

I wouldn't use the HTML5 doctype yet. With this doctype you're stating that your document conforms to a specification that is still a moving target. IMO: wait until the spec is finished and the validation process tied down.

这篇关于有没有任何优点使用HTML 5 Doctype`&lt;!DOCTYPE html&gt;`没有使用HTML 5标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆