You are previewing Stylin’ with CSS: A Designer’s Guide, Third Edition.

Stylin’ with CSS: A Designer’s Guide, Third Edition

Cover of Stylin’ with CSS: A Designer’s Guide, Third Edition by Charles Wyke-Smith Published by New Riders
O'Reilly logo

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

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