| Cascading Style Sheets, also known as CSS, are the | | | | html document) and an external style sheet (a .css |
| most popular and neat way of formatting an html | | | | document). |
| page. | | | | An important aspect of Cascading Style Sheets is the |
| There are two versions of Cascading Style Sheets | | | | operation of inheritance. If a certain aspect of |
| (CSS). CSS Level 1 was launched in 1996 and is | | | | formatting is not specified for a child element, it will |
| supported by all browsers. This version is the older of | | | | inherit the formatting of its parent element. |
| the two and is used mostly for font formatting, text | | | | When 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 lot | | | | read. Here's an example: |
| more powerful than its predecessor allowing you not | | | | If we want to have a Blue size 12pt title at the start |
| only to format text but also to position elements on | | | | of a every article on our web site we would have |
| your web page. This version of CSS is so powerful | | | | something 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 style | | | | sheets is that they can be linked to as many web |
| sheets, for example it could be linked to 2 sheets, an | | | | pages as you want making the whole process of |
| internal style sheet (styles within the head tag of a | | | | adding more content to you site a whole lot easier. |