Chapter 6. Introduction to Style Sheets

Introduction to Style Sheets

In this chapter you will learn to:

  • ✓ Understand styles.

  • ✓ Construct style rules.

  • ✓ Create styles for nested tags.

  • ✓ Create classes and IDs for applying styles.

  • ✓ Apply styles to hyperlinks.

  • ✓ Create and link to external style sheets.

After you learn about cascading style sheets, you will wonder how anybody ever had the patience to create large Web sites without them. Cascading style sheets can save you a tremendous amount of time by standardizing the formatting of an entire Web page or group of pages.

A cascading style sheet (CSS) is code that specifies formatting based on styles. This code can be placed in a ...

Get HTML and XHTML Step by Step now with O’Reilly online learning.

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