HTML Skeleton--DTD Document model

Source: Internet
Author: User

    • Text description page between
    • The text between
    • The text between <body> and </body> is visible in the page content

The following are the highlights: DTD document model

Disclaimer: <! DOCTYPE >

  HTML also has a number of different versions, only the exact HTML version used in the page is fully understood, and the browser can display the HTML page exactly. This is <!. The role of DOCTYPE >.

the difference between having and not
    1. Backcompat: Standard compatibility mode is not turned on (or is called "weird" mode [Quirks modes], promiscuous mode)
    2. Css1compat: Standard compatibility mode is turned on (or called strict mode [standards Mode/strict mode])

This property will be recognized and used by the browser, but if your page does not have a DOCTYPE declaration, then compatmode default is Backcompat, which is the beginning of the devil-the browser in its own way to parse the rendered page, then the different browsers will show different styles. If your page is added, then it is equivalent to opening the standard mode, then the browser will have to honestly interpret the rendering page according to the standards of the Web, so that your page in all browsers will display a look.

What's the use?

DOCTYPE tells the browser what HTML or XHTML specifications are used to parse the HTML document, and the DTD file contains tags, attributes, properties, and constraint rules.

Three types of DTD document models

The Common <! DOCTYPE > statement

HTML5: Development for PC-side and mobile-side

XHTML1.0 Transitional (over version): For PC-side development                

HTML Skeleton--DTD Document model

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.