Monday, June 29, 2009

Many people ask "What is CSS? And why does my site need this?"

First, CSS are Cascading Style Sheets. CSS is a style sheet language used to describe the presentation (that is, the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including SVG and XUL.

Any why use them?

1. Styles Solve a Common Problem

HTML tags were originally designed to define the content of a document. They were supposed to say "This is a header", "This is a paragraph", "This is a table", by using tags like h1, p, table, and so on. The layout of the document was supposed to be taken care of by the browser, without using any formatting tags.

As the (then) two major browsers - Netscape and Internet Explorer - continued to add new HTML tags and attributes (like the font tag and the color attribute) to the original HTML specification, it became more and more difficult to create websites where the content of HTML documents was clearly separated from the document's presentation layout.

To solve this problem, the World Wide Web Consortium (W3C) - the non profit, standard setting consortium, responsible for standardizing HTML - created STYLES in addition to HTML 4.0.

All major browsers support Cascading Style Sheets.

2. Style Sheets Can Save a Lot of Work

Styles sheets define HOW HTML elements are to be displayed, just like the font tag and the color attribute in HTML 3.2. Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in your web, just by editing one single CSS document!

CSS is a breakthrough in Web design because it allows developers to control the style and layout of multiple Web pages all at once. As a Web developer you can define a style for each HTML element and apply it to as many web pages as you want. To make a global change, simply change the style, and all elements in the web are updated automatically.


Now you know! And now you can decide if your website needs to have a quick remodel to include CSS.

Give us a call at 773-665-2552 to discuss how to add CSS to your site
or feel free to read more online:
www.w3schools.com
wikipedia.org