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