Beginners CSSPage 1: Introduction |
Send to Friend Written By: Andrew |
* Easier to change a site style - This is because when you want to change a part of a website you only need to change it in the style file
* Smaller files - The client can load your website quicker because there is less code needed to write
* Good Control - You are able to control the style of your webpages easier as the code is simpler to understand
Prerequisites
Before starting learning CSS you should be fairly confident with HTML. You can learn learn CSS as a beginner, but this particular tutorial is written for people that are already used to HTML quite well. If you don't know if you are experienced enough to follow this tutorial, then you might as well follow along and see how you go.
What's all this about cascading then?
If you import one style that tells the web browser that the h1 tag is going to have a red background, the h1 tags will have a red background. But then, after you say that h1 is going to have a red background, you say that h1 is going to have a blue background. This will cause the h1 tags to have a blue background. This is because the last style element cascaded into the old one and the web browser now listens to the blue one.
Got it? Good.
