A Beginners Guide to CSS
This guide will look at a beginners guide to CSS. CSS or Cascading Style Sheets was a method, or a ‘style sheet language’ introduced back in the early 90s to describe the layout and formatting of a web page on the Internet. It was seen as a way of separating out the document layout from the structure. It was decided early on the HTML itself shouldn’t be used as a way of describing how a page should look and that instead a specific and separate method should be used for this. The first ever proposal for how this should work, was in the form of a draft paper published in 1994 by Hakon W. Lie of CERN, called Cascading HTML Style Sheets: A Proposal.
Today the CSS language in combination with HTML is used as the ubiquitous method of specifying the presentation within a web browser. If you’d like to read more on Hypertext Markup Language , read our introduction to HTML.
The power of the CSS language is in using it to create consistent and attractive page presentation on an Internet website. When a browser reads from a cascading style sheet it should be able to format and therefore present the page as outlined by the CSS – in other words, the CSS dictates how the web page should look and this includes:
- Font type, colour, size, shadows and spacing
- Page layout and alignment and column layout
- Page element type and placement including backgrounds and borders
- List styles (e.g. bulleted, image based and so on)
- Positioning of elements
How Cascading Style Sheets Works
Cascading Style Sheets is a software language. It is rooted in the fact that HTML was never originally meant to contain ‘tags’ that told a page what it should look like. For example, the tag <font> was needed to be added to every single Internet web page when HTML was used before the advent of Cascading Style Sheets. This meant that for websites with many pages, you’d have these formatting tags on every single page and it made maintenance of those websites a nightmare. When it comes to page layout, CSS is the best way to handle it.
When Cascading Style Sheets came along it meant you could take this tag information and store it in a separate file that the HTML simply called upon when displaying that page. It means you can maintain a single file for an Internet website with hundreds or even thousands of pages, and make changes easily and quickly that then populate throughout the site.
The file type extension created when you create a CSS file is called a .css
Cascading Style Sheet language has basic syntax rules:
- Selector – which points to the element you are styling
- Declaration block which contains:
- Property name
- Property value


