Methods of Associating Style Sheets with Documents

There are several ways to associate styles with Web documents. We’ll quickly mention the three methods that are most commonly used, and then the rest of the chapter will focus on the first of these methods.

  • 1. External style sheets.

  • 2. Embedded style sheets.

  • 3. Inline style attributes.

External Style Sheets

An external style sheet is a separate text file that can be associated with one or more HTML documents. A single style sheet can be associated with thousands of HTML documents. This makes the external style sheet an extremely powerful tool, and it’s the method we’ll focus on in the rest of this chapter.

For example, here is the style sheet we associated with the AIR judging form we created ...

Get Maximum Accessibility: Making Your Web Site More Usable for Everyone now with O’Reilly online learning.

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