Cascading Style Sheets, also known as CSS, is a computer language that describes how the website should be presented. It shows what the background color is, what size of font is displayed and so forth.

CSS is designed in a manner that makes it easier to define how text should look. If you are familiar with HTML, you will know that it was designed as a structural language. When the web was in it’s early development stages, websites were not “pretty”. In fact, HTML didn’t contain bold or italics tags until the mid 1990’s.

When someone uses CSS to build their website, they do not have to include a bunch of opening and closing tags, as would be needed with HTML. With CSS, not only can the website designer have the ability to set the colors, text and the background of any element, they can also create borders around images and define how much space these borders contain.

Another advantage of using CSS is that it centralizes all the commands for a specified visual effect. If a web designer wanted all of the headers on a website to be blue, they can simply create one rule in CSS that defines what each of the headers will look like.

If that same web designer were using HTML, they would have to add font tags around each header. If the website contained 40 pages, the designer would need to add 40 font tags around each header. As you can see in that example, creating one simple rule in CSS was a lot simpler and less time consuming. If the web designer wants to change the heading color from blue to red all they would need to do is change that one CSS rule, versus changing each font tag again.

The “cascading” part of CSS comes into pay when a web designer wants to add a specific style to a web page. To maintain a common theme throughout a site, the designer could save the style sheet to it’s own document and import it on any page they want to carry the theme to. If the web designer wants one page to stand out against the others, they can create another style sheet on that page. The two style sheets would cascade, and the web browser will display the style sheet that is specific for that page.

Some browsers allow the reader of the website to change the CSS of a page. This is called Reader Style Sheets. The reader could set all links to a special, pre-defined color. This is a great tool for color-blind web surfers.

Another bonus to CSS is that, when implemented, it creates smaller file sizes. Your pages won’t take as long to load as those written in HTML.

A good way to practice working with CSS is through a blog. It doesn’t matter if you use Blogger, WordPress or TypePad because they are all written with CSS. These sites also have CSS tutorials to help along the way.


3 Responsed To This Post

Subscribes to this post comment rss or trackback url
greg said, September 2nd, 2008 at 3:37 pm

Yep CSS is definitely dynamic

Simon Slade said, September 14th, 2008 at 8:45 pm

When you write it down CSS does have a lot of advantages which make website construction a lot easier.
Thanks for sharing this with us :)

Nick said, September 15th, 2008 at 2:46 pm

Nice article. I am still learning but as you said the best thing is to play around with a blog template. I use wordpress for my main sites and as long as you back up your files you can test different things out.

Response To This Topic

Please Note: The comment moderation maybe active so there is no need to resubmit your comment
pink portable hard drive 160GBIomega 33984 160 GB eGo USB 2.0 Portable Hard Drive (Pink) ~ Take files anywhere, in style, with the Iomega eGo Portable Hard Drive USB 2.0 - an extremely durable drive which includes patent pending Drop Guard feature to withstand the toughest of travel environments. Available in 160GB capacity, it holds up to 640,000 photos, over 2,900 hours of music and 240 hours of video. Plus, the Iomega eGo Portable Hard Drive requires no external power supply and includes a free EMC Retrospect HD backup software license.
software remove virus the