Older browsers (IE6,IE7,IE8) identify HTML5 tags

Source: Internet
Author: User

In recent years, the HTML5 craze, HTML5 added some semantic tags, but also let the front-end brother you rejoice.

HTML5 New Tags

But like IE6,IE7,IE8 these old and old rendering effects and ugly, so that the front-end brother you hate the root itch of the smelly browser, because some of the reasons for the mess can not give up treatment. Of course they don't recognize these new semantic tags.

Send them a hehe.

No, just spit it out. Let's look at the rendering effect of the different new browsers and the HTML5 semantic tags under the old browser.


My favorite chrome under:

Textlie ~ ~ ~


The effect under IE8:




But the front-end brothers have come up with a way to deal with them.

The front-end great gods found that using document.createelement to create them before rendering could make those stubborn browsers recognize them.

When the browser version < IE 9 o'clock, append the script snippet:

Look at the effect under IE8:



As for the old browsers, these new semantic tags are rendered in the case of inline elements, as needed to add style {Display:block;} Can.

Okay, now that old-fashioned browsers are already able to identify these new tags, the rest is on our own.

Older browsers (IE6,IE7,IE8) identify HTML5 tags

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.