O'Reilly logo

Cascading Style Sheets: Designing for the Web, Third Edition by Bert Bos, Håkon Wium Lie

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

Chapter 2. CSS

As we explained in Chapter 1, “The Web and HTML,” HTML elements enable Web-page designers to mark up a document’s structure. The HTML specification lists guidelines on how browsers should display these elements. For example, you can be reasonably sure that the contents of a STRONG element will be displayed as boldfaced. Also, you can pretty much trust that most browsers will display the content of an H1 element using a big font size – at least bigger than the P element and bigger than the H2 element. But beyond trust and hope, you don’t have any control over your text’s appearance.

HTML is the most popular document format on the Web, and it is used in most of the examples in this book. However, you can use CSS to style other ...

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