Semantic HTML: Markup with Meaning

HTML is a clever system of including information about the content in a text document. This information, called markup, describes the meaning of the content, that is, the semantics. You’ve already seen a few examples in our basic HTML page, such as the p element that marks up paragraph content.

HTML does not define how the content should appear in a browser; that’s the role of CSS (Cascading Style Sheets). HTML5 stresses this distinction more than any prior version of HTML. It’s at the core of the language.

You might be wondering why, if that’s the case, some text in the basic HTML page Image looks larger than other ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

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