You are previewing HTML5 for Web Designers.

HTML5 for Web Designers

Cover of HTML5 for Web Designers by Jeremy Keith Published by A Book Apart
O'Reilly logo
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.

Styling

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

The best content for your career. Discover unlimited learning on demand for around $1/day.