Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Web Accessibility Compliance Semantic HTML and WAI-ARIA HTML5 Semantic Tags

How would this display for a user running a browser that does not support HTML5?

If your target demographic is mixed with users who maintain newer updated browsers and those that are still using legacy versions, will you need to implement code that will use the "div soup" format for legacy browsers and the updated html5 version for newer browsers?

1 Answer

tammys
tammys
17,637 Points

It would display as though it were not styled.

Checking 'Can I Use', I found that semantic HTML is supported on all current browsers (https://caniuse.com/#feat=html5semantic). Its pretty robustly supported even going back many browser versions.

But, if you need to support IE8, for example, you'd need to do something like add a div element to the markup. For example, <header><div class="header">. This would maintain accessibility and provide fallback support for old browsers if needed. There are also tools like Modernizr or HTML5Shiv that can help with this.