« AJAX - Asynchronous JavaScript And XML - DotNet Framework » EMail This Post

Why use css?

8 August 2008

 

Why use css?

Introduction

It is no longer a new emerging technology. It is being used on more and more web sites, and more and more users are using a browser that knows and understands better and better CSS.

But why? Why are people using CSS? Here listing of some of the many benefits and drawbacks, that CSS brings to the Web community.

Separating style from content

The main benefit in CSS, is that it manages to separate the style from the content on your web page. If you are used to using HTML, you’ll have noticed, that HTML can do both style and content. With a FONT-tag, and some artistic sense, you can make a HTML page quite stylish.

What CSS does, is that it handles the style of your web page, and lets HTML do the content. Why is this good?

First of all, the stylish capabilities in HTML are quite limited. Secondly, with the use of an external style sheet, you are able to alter you entire site style, by only editing one single file!

As an example of the above, let’s say you wanted to change your site from using Times New Roman to Arial. With ‘old-fashioned’ HTML, you would have to alter the FONT tag, on each and every page. With CSS, you would just need to alter the style sheet, and then all pages would be using Arial.

Even though trends are towards decentralization, you actually make things easier, more efficient, and save time, by centralizing your style into one single style sheet.

 


Leave a reply

You must be logged in to post a comment.