Tuesday, July 21, 2009

CSS - Cascading Style Sheets

* Main purpose - to control the appearance of MULTIPLE HTML documents.
* It separates the structure of the site from the presentation of the site.
* The structure of the site relates to the content of the document - text, images, etc.
* The presentation of the site relates to its appearance.
* We create a set of STYLES or RULES in one CSS file.
* Then we link this CSS file to all our HTML files using a line of code inside the head tag:
link href="styles.css" rel="stylesheet" type="text/css" (inside a self-closing tag)
* 'rel' and 'type' just specify what type of document is being linked.
* If you change a rule in the CSS file, the change will 'cascade" through all the HTML pages.

No comments:

Post a Comment