C H A P T E R  3

Recognizing Semantics

OK, OK, we've drudged through the available elements, and that is all well and good, but you may be wondering how you go from knowing the HTML elements to mastering the HTML elements. Well, after knowing what elements exist, the next step is knowing when to use one over another. This chapter will guide you on that path, focusing on the elements that define the structure and semantics of your web page. We'll code a simple web page outline to learn about structural semantics and then delve into a case study to explore the nuances of text-level semantic elements.

What are semantics and why should I care?

“Elements, attributes, and attribute values in HTML are defined (by this specification) to have certain ...

Get HTML5 Mastery: Semantics, Standards, and Styling now with O’Reilly online learning.

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