HTML header Tag

Source: Internet
Author: User

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.

    • HTML 4.01 Strict
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" >
    • HTML 4.01 Transitional
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
    • HTML 4.01 Frameset
<! 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.