What is a Cascading Style Sheet (CSS)

Cascading Style Sheets, also known as CSS, are thehtml document) and an external style sheet (a .css
most popular and neat way of formatting an htmldocument).
page.An important aspect of Cascading Style Sheets is the
There are two versions of Cascading Style Sheetsoperation of inheritance. If a certain aspect of
(CSS). CSS Level 1 was launched in 1996 and isformatting is not specified for a child element, it will
supported by all browsers. This version is the older ofinherit the formatting of its parent element.
the two and is used mostly for font formatting, textWhen you use CSS, you can avoid the use of most
alignment and line spacing.html format tags making your code much easier to
CSS version 2 came out in 1998. This one is a lotread. Here's an example:
more powerful than its predecessor allowing you notIf we want to have a Blue size 12pt title at the start
only to format text but also to position elements onof a every article on our web site we would have
your web page. This version of CSS is so powerfulsomething like this in our html code:title
that all good web designers use it instead of using(single quotes have been added after the " Title
html tables.And voila!!! All titles that are within the titles class will
The word Cascading reflects how style sheets work.be formatted in the same way. The beauty of style
An Html document can be linked to several stylesheets is that they can be linked to as many web
sheets, for example it could be linked to 2 sheets, anpages as you want making the whole process of
internal style sheet (styles within the head tag of aadding more content to you site a whole lot easier.