DOCTYPE的问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:09:08
Original
939 people have browsed it

百度首页的DOCTYPE声明是:nbsp;html>
它这么声明即没指定使用哪个DTD,也没指定地址,那浏览器会使用哪个DTD呢?
另外,像这种情况,浏览器为什么还遵循标准模式呈现呢?

谢谢!


回复讨论(解决方案)

没有指定 每个浏览器默认采用的标准可能就会不一样 一些页面功能样式等会出错

没有指定 每个浏览器默认采用的标准可能就会不一样 一些页面功能样式等会出错
那百度为什么不指定啊?

html5的声明方式。

http://www.w3school.com.cn/html5/html5_doctype.asp

哦好的谢谢!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!