Common HTML Header Tags HTTPS://GITHUB.COM/YISIBL/BLOG/ISSUES/1
HTML Head Header Tag http://blog.jobbole.com/78592/
Mode? Standard (browser rendering mode) http://padding.me/blog/2014/07/04/mode-or-standard/
DOCTYPE
DOCTYPE (document Type), which is located in the first position of the document, html before the label, which tells the browser which HTML or XHTML specification to use for the document.
The DTD (Document Type Definition) is declared to <!DOCTYPE> start, is not case-sensitive, there is nothing in front of it, and if anything else (except spaces) causes the browser to turn on the quirks mode in IE to render the Web page. The public DTD, in the name format 注册//组织//类型 标签//语言 , 注册 refers to whether the organization is registered by the International Organization for Standardization (ISO), which + indicates that it is - not. 组织that is, the name of the organization, such as:. 类型is typically a DTD. 标签is to specify a public text description, which is a unique descriptive name for the referenced exposed text, which can be followed by a version number. The last 语言 is the ISO 639 language identifier for the DTD language, such as: En for English, en for Chinese. XHTML 1.0 can declare three types of DTDs. Represents the strict version, the transition version, and the framework-based HTML document, respectively.
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" >
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 frameset//en" "HTTP://WWW.W3.ORG/TR/HTML4/FRAMESET.DTD" >
- The latest HTML5 introduces a more concise writing, which is backwards and forwards compatible and recommended for use.
<!doctype html>
doctypeThere are two main purposes in HTML.
- Validation of the document.
It tells the user agent and the validator that the document was written according to what DTD. This action is passive, and each time the page loads, the browser does not download the DTD and checks for legitimacy, which is enabled only when the page is manually validated.
- Determines the rendering mode of the browser for the actual operation, which tells the browser which parsing algorithm to use when reading the document. If it is not written, the browser parses the code according to its own rules, which can seriously affect the layout of HTML layouts. The browser has three ways to parse the HTML document.
- Non-bizarre (standard) mode
- Weird mode
- Part of the weird (near standard) mode about IE browser document mode, browser mode, strict mode, weird mode, DOCTYPE tag, can detailed reading mode? Standard! The content.
HTML header Tag