Chapter 2

Styling Text

In This Chapter

arrow Introducing fonts and typefaces

arrow Specifying the font family

arrow Determining font size

arrow Understanding CSS measurement units

arrow Managing other font characteristics

arrow Using the font rule to simplify font styles

Web pages are still primarily a text-based media, so you'll want to add some formatting capabilities. HTML doesn't do any meaningful text formatting on its own, but CSS adds a wide range of tools for choosing the typeface, font size, decorations, alignment, and much more. In this chapter, you discover how to manage text the CSS way.

tip.eps A bit of semantics is in order. The thing most people dub a font is more properly a typeface. Technically, a font is a particular typeface at a particular size with a specific set of decorations (underlining, italic, and ...

Get HTML5 and CSS3 All-in-One For Dummies, 3rd 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.