What is CSS

October 20, 2009

Cascading Style Sheets (CSS) is the style sheet language used for formatting text in documents written in Hypertext Markup Language (HTML) for websites.  CSS is important because it determines fonts, colours, and positions of elements on web pages.

Today all web pages, use CSS and gain the following advantages:
-          Allows consistency throughout the website, the same elements on all pages look the same
-          Efficient - CSS is saved in separate files and stored in web browser cache
-          Once the first page is loaded, all other pages load, there is no need to download the same code again
-          Easy maintenance:  Make changes in one place all similar elements on the site will be changed
Sample CSS code:
a {
                font-size:12px;
                color:#333333;
}
Including this in CSS file will make all the links to look the same (Font Arial, size 12, and grey colour)