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

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>
主站蜘蛛池模板: 突泉县| 大英县| 嘉鱼县| 泉州市| 广河县| 九龙坡区| 景泰县| 绵阳市| 巴林右旗| 南江县| 铁岭市| 梧州市| 阿拉尔市| 拜泉县| 始兴县| 平顺县| 鹤峰县| 华池县| 东辽县| 汉中市| 扎兰屯市| 襄城县| 黄平县| 天津市| 阜新市| 红安县| 牙克石市| 依安县| 抚顺县| 丰镇市| 任丘市| 大连市| 右玉县| 正定县| 舟曲县| 施秉县| 搜索| 澎湖县| 陕西省| 铁岭市| 绥江县|