Sunday, January 29, 2012

Link Style Sheets

External style sheets can be applied to multiple documents. Each document must be linked to the style sheet
in order for the styles to be applied. Placing a link to the style sheet in the head of the marked up content file
does this. When the browser begins reading the page, it sees the style sheet link, and downloads the style
sheet, then uses it to display the page.

To link a web page to a style sheet, place a link to the .css file in the head of the document, using the
following syntax:
<link rel="stylesheet" type="text/css" href="mystyles.css"/> 

The style sheet should be accessible to all files that use it. Typically, it is placed in the root directory of the
web folder.

No comments: