images

Chapter 3

New Structural Elements

As we saw in the exercises at the end of Chapter 1, it’s all about the semantics. The mistaken idea of choosing our markup solely for its presentation, as epitomized by <table>-based layouts and spacer.gifs, has been thoroughly shown the door by the “standardista” movement. Instead, our rallying cry is

“Use the most semantically appropriate element.”

Happily, most of the time the default browser presentation of each element closely maps to its semantic meaning. This gives us accessibility benefits, as semantic markup provides a foundation of meaning regardless of presentation. It also has the benefit of future-proofing ...

Get Beginning HTML5 and CSS3: The Web Evolved now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.