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

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>
主站蜘蛛池模板: 和龙市| 南乐县| 德阳市| 双峰县| 佛坪县| 揭东县| 太和县| 太原市| 广宗县| 开远市| 淅川县| 盖州市| 怀安县| 宣汉县| 阿勒泰市| 仁怀市| 武宁县| 武邑县| 重庆市| 桦川县| 克拉玛依市| 井研县| 铁力市| 镇康县| 辉南县| 新宁县| 鄯善县| 逊克县| 大丰市| 德化县| 崇信县| 石河子市| 东城区| 土默特右旗| 城口县| 大竹县| 望城县| 英德市| 丘北县| 县级市| 榕江县|