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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.