Text mode in IE! DOCTYPE function introduction _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Document Type (abbreviation! DOCTYPE (DOCumentTYPE) is used to tell the Standard Generic Markup Language parser what document type definition (DTD) should be used) after solving the problem of Automatic Filling of forms mentioned in the previous article, I encountered a new problem, that is, some styles in IE are incorrectly displayed. Use the IE developer tool to view the corresponding style, and compare the local html pages that can be correctly displayed. The style is basically the same, except that some font styles display the font-size style in the developer tool, others are the same, including the margin style that causes incorrect style display. Finally, the developer tool finds that the text mode of the two pages is different. The correct text mode is standard, while the miscellaneous mode is used to display abnormal pages.

When you find the webpage source code, the abnormal webpage is decorated by sitemesh, And the decoration page does not define the text mode! DOCTYPE causes the browser to fail to parse the webpage in standard mode.

! Document Type (abbreviation! DOCTYPE, full name of DOCumentTYPE), one! DOCTYPE is a document type declaration of Standard Generic markup language. It aims to tell the Standard Generic Markup Language parser what document type definition (DTD) should be used) to parse the document. It appears as the first line of the file and has the following form:
PUBLIC "referenced string">
A referenced string is a public identifier called. It refers to the document type definition (DTD) required by a well-known name, it is usually composed of a related standard. [1]
Availability:
Specifies whether the FPI is a publicly accessible object or a system resource.
IETF and W3C are not registered ISO organizations.

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.