
Cascading Style Sheets
by White Shaarks on Jun.10, 2009, under Latest Web Technologies
Cascading Style Sheets
Cascading Style Sheets is a simple mechanism for adding Styles to the wed documents. (for e.g. color, fonts, spacing etc.). Before going thought the CSS you should have a basic understanding of the HTML/XHTML.
What is CSS?
CSS stands for Cascading Style Sheets
Styles define how to display HTML elements
External Style Sheets can save a lot of work
External Style Sheets are stored in CSS files
Styles were added to HTML 4.0 to solve a problem
Styles are normally stored in Style Sheets
Multiple style definitions will cascade into one
To solve this problem, the World Wide Web Consortium (W3C) - responsible for standardizing HTML - created CSS in addition to HTML 4.0. With HTML 4.0, all formatting can be removed from the HTML document and stored in a separate CSS file.
There are three parts for CSS syntax: a sector, a property and a value.
The sector is normally the HTML elecment or a tag which can be defined and property is the attribute which can be changed and each property can be taken a value. The property and value are separated by a colon, and surrounded by curly braces.
Syntax:- Sector { property:value}
Example :- body {color:black}
Leave a Reply
You must be logged in to post a comment.

