HTML5 declaration is compatible with IE and html5 declaration with ie

Source: Internet
Author: User

HTML5 declaration is compatible with IE and html5 declaration with ie

<! DOCTYPE html> <! -- [If IE]> <meta http-equiv = "X-UA-Compatible" content = "IE = 8"/> <! [Endif] --> <! -- [If IE 7]> <meta http-equiv = "X-UA-Compatible" content = "IE = 7"/> <! [Endif] --> <! -- [If IE 6]> <meta http-equiv = "X-UA-Compatible" content = "IE = 6"/> <! [Endif] -->

<! DOCTYPE html> is an HTML5 declaration. Only IE8 or earlier versions of mainstream browser browsers are not supported, So IE enters the Quirks mode. However, the subsequent statement can forcibly specify the IE rendering mode, so <! DOCTYPE html> the declaration has no effect on IE.

HTML5 is not as strict as XHTML. For general xhtml pages, it is basically impossible to completely pass the W3C verification standard, but it can be passed after being declared as HTML5.

Related Article

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.