CSS is used to describe your site layout.
Let's take a short example : you want to display a "page title" on each page of your website; Let's say : bolded font, green color, size 25pt and top-margin = 40 pts. How will you specify this format on each page of your website ?
* You can decide to specify thoses parameters on each page, together with the text.
* Or can put this description in a separate file, let's call it : "style.css", and then just tell on each page of your website to download this format file.
What is the difference between both methods ? Well, if one day you customer tells you to change from "green / 40 pts" to "blue, 30 pts", and you've got 50+ pages to change, what will be the fastest & easier method ?
CSS allows you to put ALL your website layouts in a single CSS file (using a specific CSS language to describe what you want, very easy to learn). And then one single line of code lets you apply those layouts to each of your web pages.
In a few words : thanks to CSS, your web pages have to hold only the CONTENT of your website, while a single CSS file - common to all pages - will hold the whole LAYOUT of your website.
This will allow very fast layout modifications !
Jean-Pierre
|