官术网_书友最值得收藏!

DOCTYPE

The DOCTYPE element defines the document type of the file, as follows:

<!DOCTYPE documentType>

Attributes

The documentType attribute that you can see in the preceding code lets the browser know the type of document you will use.

Description

HTML5 has a simple document type declaration, <!DOCTYPE html>. This lets the browser know that the document is HTML5. The previous versions of HTML needed a formal definition of the version being used, but HTML5 has removed this for simplicity.

Most browsers will enforce strict adherence to the document type declared and try and figure out what it is based on looking at the document. This can lead to rendering issues, so it is recommended that you do follow the standards.

Here is an HTML5 declaration:

<!DOCTYPE html>
主站蜘蛛池模板: 嵊泗县| 宜兰市| 磐安县| 南漳县| 库尔勒市| 开阳县| 景洪市| 遂宁市| 阿拉善盟| 江津市| 昭觉县| 阿尔山市| 凌源市| 高要市| 东平县| 调兵山市| 萨嘎县| 水富县| 砀山县| 临西县| 丰镇市| 兖州市| 兴山县| 宽城| 东安县| 襄城县| 涿鹿县| 来凤县| 苏尼特左旗| 鄂尔多斯市| 肃南| 关岭| 浮梁县| 义马市| 姜堰市| 启东市| 齐齐哈尔市| 磐安县| 朝阳区| 通榆县| 柳江县|