BODY { color: #000000; background: #ffffe8; margin-left: 4%; margin-right: 4% }
H1 { text-align: center; color: #880000 }
H2 { text-align: center; color: red }
H3 { text-align: left; color: blue }
To use an external style sheet place the following line in the header section of your file.
<LINK REL="stylesheet" HREF="workshop.css" TYPE="text/css">
Note that in this example, the style sheet and the HTML file are in the same directory.
| An HTML File | Document Structures | Template Document using an Internal Style Sheet | Template Document using an External Style Sheet |
|---|
Return to the Workshop Index.
http://www.chem.vt.edu/chem-ed/gdh/gdh/extstyle.html, updated 10/16/98.
Copyright © 1997-98 by Brian M. Tissue, all rights reserved.