7. CSS Building Blocks

Let’s face it—most of the webpages I’ve shown you so far aren’t particularly compelling visually. That’s because we’ve been focusing on defining our content with HTML, not on styling our webpages with CSS (Cascading Style Sheets). But that’s about to change. Over the next handful of chapters, you’ll learn how to style text and backgrounds, implement multi-column layouts, build a layout that looks good on everything from phones to desktops (and beyond), and more. In this chapter, we’ll lay the groundwork by covering the basic CSS concepts.

A style sheet is simply text that ...

Get HTML and CSS: Visual QuickStart Guide, Eighth 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.