Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Display DIV instead of Section / Article in IE

Display DIV instead of Section / Article in IE

Problem

I basically want to create a webpage which supports HTML5's semantic Elements however for browsers, which doesn't note the HTML5 elements, what can I do?

For example I'd like to use

which is noted by modern browsers, but what could I do to show a DIV instead of a SECTION if someone visits my site in an older browser?

I have tried to use the following code, which would only be useful for Internet Explorer, but hat about other browsers?

Any suggestions?

Problem courtesy of: user1406071

Solution

I great way to get around this issue is to include the JavaScript polyfill library Modernizr. It makes the HTML5 elements work in older versions of IE. That way you can start using HTML5 semantic tags now rather than waiting until old IE dies ;)

Solution courtesy of: Daniel Imms

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Display DIV instead of Section / Article in IE

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×