DOCTYPE
The first line of your HTML page will contain the DOCTYPE. This is used to tell the browser how the HTML should be interpreted. We'll focus on HTML5 in this book so the first example you see in the following uses the HTML5 DOCTYPE. The two other common doctypes are HTML 4.01 Strict and XHTML 1.0 Strict:
- HTML5:
<!DOCTYPE html>
- HTML 4.01 Strict:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- XHTML 1.0 Strict:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
推薦閱讀
- 程序員面試筆試寶典(第3版)
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- AngularJS Web Application Development Blueprints
- Java Web開發(fā)之道
- 深入理解Java7:核心技術(shù)與最佳實(shí)踐
- C語(yǔ)言程序設(shè)計(jì)立體化案例教程
- Apache Mesos Essentials
- Java編程的邏輯
- HTML5與CSS3基礎(chǔ)教程(第8版)
- PHP編程基礎(chǔ)與實(shí)例教程
- Getting Started with Eclipse Juno
- Windows Embedded CE 6.0程序設(shè)計(jì)實(shí)戰(zhàn)
- Flowable流程引擎實(shí)戰(zhàn)
- JavaScript+jQuery網(wǎng)頁(yè)特效設(shè)計(jì)任務(wù)驅(qū)動(dòng)教程
- Secret Recipes of the Python Ninja