The Jean and Alexander Heard Library

Library Information Technology Services

Cascading Style Sheets

 

Step 9

Key points:

  • Establishing and external CSS file is a two-step process. First set up the rules in a text file and then link this file into the HTML document

Linking the external CSS file to the document

You will now have two interelated files. Your original html document and an attached stylesheet. You may now use this stylesheet in any other html file to control its formatting.

Example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<head>
<title>
Jean and Alexander Heard Library--Vanderbilt University
</title>
<link rel="stylesheet" type="text/css" href="/heard/heard.css" />
</head>

When you make a single change in the css file, it will be propagated to all documents linked to this stylesheet.

 

<<prev | next>>


Copyright 2001 Jean & Alexander Heard Library, Vanderbilt University