Visit our FaceBook Page

CSS (Cascading Style Sheets)

CSS stands for cascading style sheets and is used for applying visual layout and style to your HTML documents. It is a fairly straight forward language and can be used across several HTML documents.

To use CSS you must first create a CSS file, lets start by creating one called "screen.css".  


What we did here is we created two "rules" one for the BODY and one for the H1 tag. As you can see from the rules outlined, we have set the BODY to have a background color of "#cccccc" or neutral grey and made the color of the H1 content "#ffffff" or white.

To use this in your document, you must like to it in your HTML file.


You may reuse a CSS file amongst many HTML files, this offers you the ability to control the look and feel across your entire website with one file.  If you wonder why you should do this rather than control your styles in-line, consider how much it would pain you if your client asked you to change the color of all your H1 tags through 100 or 1000 pages.

CSS get much deeper than this but this is the essence of it. To learn more check out the articles under CSS in the menu or visit W3Schools as they cover this extensively.

Reader Comments