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