Skip to Content
Head First HTML and CSS, 2nd Edition
book

Head First HTML and CSS, 2nd Edition

by Elisabeth Robson, Eric Freeman
August 2012
Beginner
768 pages
18h 20m
English
O'Reilly Media, Inc.
Content preview from Head First HTML and CSS, 2nd Edition

Chapter 8. Styling with Fonts and Colors: Expanding Your Vocabulary

image with no caption

Your CSS language lessons are coming along nicely. You already have the basics of CSS down, and you know how to create CSS rules to select and specify the style of an element. Now it’s time to build your vocabulary, and that means picking up some new properties and learning what they can do for you. In this chapter we’re going to work through some of the most common properties that affect the display of text. To do that, you’ll need to learn a few things about fonts and color. You’re going to see you don’t have to be stuck with the fonts everyone else uses, or the clunky sizes and styles the browser uses as the defaults for paragraphs and headings. You’re also going to see there is a lot more to color than meets the eye.

Text and fonts from 30,000 feet

image with no caption

A lot of CSS properties are dedicated to helping you style your text. Using CSS, you can control font, style, color, and even the decorations that are put on your text, and we’re going to cover all these in this chapter. We’ll start by exploring the actual fonts that are used to display your pages. You’ve already seen the font-family property, and in this chapter you’re going to learn a lot more about specifying fonts.

Before we dive in, let’s get the 30,000-foot view of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HTML & CSS: Design and Build Websites

HTML & CSS: Design and Build Websites

Jon Duckett
Learning HTML & CSS

Learning HTML & CSS

Jennifer Kyrnin

Publisher Resources

ISBN: 9781449324469Errata PageSupplemental Content