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

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>
主站蜘蛛池模板: 两当县| 怀集县| 积石山| 安义县| 佳木斯市| 奉贤区| 临洮县| 缙云县| 静海县| 百色市| 景宁| 洪泽县| 政和县| 延边| 铜鼓县| 平果县| 屯门区| 铜山县| 韶山市| 陇川县| 柘城县| 类乌齐县| 鄂尔多斯市| 平武县| 云林县| 乌拉特前旗| 托克托县| 汶川县| 丰都县| 徐闻县| 阜康市| 介休市| 琼结县| 呈贡县| 同心县| 高雄县| 名山县| 永川市| 保靖县| 星子县| 交口县|