Styling HTML5 Elements in Older Browsers

As you know, HTML5 introduces several new semantic elements, most of which you learned about in Chapters 3 and 4. In many cases, modern browsers support those elements natively. From a styling point of view, that means these browsers apply default styles to the new elements just as they do for HTML elements that have existed since the earliest days of the language. For example, elements such as article, aside, nav, and section (as well as some others) display on their own line, just like div, blockquote, p, and others that were defined as block-level elements in versions of HTML before HTML5.

You might be wondering, “What about older browsers? How can I use the new HTML5 elements if they didn’t exist when ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.