Chapter 6: Using HTML5 Today

If you want to start using HTML5’s new structural elements today, there’s nothing stopping you. Most browsers will allow you to style the new elements. It’s not that browsers actively support these elements, it’s just that most browsers allow you to use and style any element you care to invent.


Browsers won’t apply any default styling to the new elements. So, at the very least, you will want to declare that the new structural elements should force a line break:

section, article, header, footer, nav, aside, hgroup {
  display: block;

That’s enough for most browsers. Internet Explorer has special needs. It resolutely refuses to recognize ...

Get HTML5 for Web Designers now with O’Reilly online learning.

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