web06.psd

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.

video6.ai

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.

PushPin_Shadow.tif
PushPin_PMS179-1c.psd

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 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.