CSS Definition: What is CSS Defined and Explained

by Yang Yang on June 16, 2009

CSS standards for Cascading Style Sheets. It’s a descriptive programming language that specifies how web pages look like in appearance and style.

Take a book for example. The texts in the book are content, just like the texts you are reading right now in a web page or HTML page. The publishers of the book decide that it would be too boring to the readers if they had simply printed out those texts as a book with nothing but black ink on the white sheets, instead, they spice things up, such as using light blue as the background color of the pages, employing different typeface for different sections and framing here and there to outstand things, though not too much.

It’s the same with a Microsoft Word document, .doc, if you have ever worked with one. The plain texts themselves are the ultimate content and what we care about in the end. However, without proper styling, it’d look dumb and hard to digest in some cases. You will want to give colors to important snippets such as heading texts and possibly also make them bold.

Basically, that’s what CSS does with web pages – styling things and spicing the plain content up so they become appealing or even striking. Web designers rely on CSS to design everything in the web pages. All page elements, visual components on the Web are styled and beautified by the help of CSS.

A quick example of CSS

Let’s say there are some paragraphs in a web page (HTML page) that you want colored red, then you’ll probably write a CSS rule of this:

p {color:red;}

That’s all it takes. Now all modern browsers will load the HTML page and render and display the paragraph texts in red.

Previous post:

Next post: