Creating a cascading style sheet

Cascading style sheets make it easy to apply and maintain styles on multiple topic files or Web pages. Once a stylesheet has been applied to a set of pages, changing a style on the stylesheet updates that style on each page the stylesheet is linked to.

To create a cascading style sheet

  1. Open an HTML file, and then use the <STYLE> tag to specify the font, color, margin, heading styles, and other style elements you want your style sheet to use.
  2. If you want to create an external style sheet and link other files to it, save the style sheet as a separate .css file. If you want to include the style sheet in the file you are working in, save the HTML file.

Notes

Home page link About using cascading style sheets