Chapter 1. HTML Markup and Document Structure

This book is about CSS, which is why the first chapter is about HTML, the Hypertext Markup Language!

The reason I start with HTML is that the purpose of CSS is to style HTML markup, so you first need to know how to write and structure your HTML markup so that it can be readily styled with CSS. Every Web page begins life as HTML because the first task in building a Web page is to mark up the content. Content is all the stuff you want to deliver to your audience, such as text, images, audio, and video.

The purpose of HTML markup is semantic; that is, it gives your content meaning to the user agents, such as browsers, screen readers, and Web crawlers, that display, speak, or analyze it. HTML provides ...

Get Stylin’ with CSS: A Designer’s Guide, Third Edition 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.