O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required