Forgive my ignorance, could someone let me know how older non HTML 5 browsers will treat <header> <article> etc?
Will they just lay them out as divs? If not this seems like a pretty serious barrier to entry for HTML5.
Will they just lay them out as divs? If not this seems like a pretty serious barrier to entry for HTML5.
The TL;DR is that all browsers treat unknown elements as inline elements, so for older browsers you'll need to explicitly define elements like header, section, etc as display: block.
IE has an extra wrinkle, where it won't apply CSS styles to unknown elements. The fix, which Modernizr applies, is to create dummy elements of each new type in JavaScript before they appear in the page.
Once that's done, IE happily applies styling to the new elements.