Cover Page by Charles Wyke-Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required