Lesson 6: Formatting Text with CSS

In this lesson, you’ll learn how to control the appearance of text on your web pages using CSS styling.

What you’ll learn in this lesson:

• Using the font-family property

• Setting the size of your text

• Working with the em measurement

• Changing text properties

• Using HTML lists

Starting up

You will work with several files from the web06lessons folder in this lesson. Make sure you have loaded the weblessons folder onto your hard-drive from www.digitalclassroombooks.com/webdesign. See “Loading lesson files” in the Starting Up section of this book.


See Lesson 6 in action!

Use the accompanying video to gain a better understanding of how to use some of the features shown in this lesson. You can find the video tutorial for this lesson at www.digitalclassroombooks.com using the URL provided when you registered your book.


Although this lesson uses the TextWrangler text editor to create the markup, you can use any of the text editors covered in Lesson 3 and get the same results.

The importance of typography on the web

Typography ...

Get Web Design with HTML and CSS Digital Classroom now with O’Reilly online learning.

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