CSS: Using Styles

Styles can be applied:

The pages of my personal site employ styles within the head element. These styles must be included in each page.

This page employs a linked style sheet. The link for a separate style sheet looks like this...

<link rel="stylesheet" type="text/css" media="screen" href="testing.css" />

...where the name of the style sheet file is "testing.css"

A style sheet can control all the pages to which it is linked. Compare the HTML source and the style sheet.

Make sure to check your pages in a varity of browsers. This page looks fine in IE and in Netscape 6. Netscape 4.72 can't deal with the style sheet.

For additional examples, go to the textbook site at www.cookwood.com/html.

 

WS_FTP | Doc Types | Head Element | Charset | Links | Tables | Images | CSS | Javascript | Home | Top