CSS stands for Cascading Style Sheets. These styles define how to display HTML elements such as text and images. HTML can do this but it was not designed for the task.

A basic HTML document would be made up of chunks of text and perhaps the odd image all wrapped in tags. The CSS then tells the browser how to display them.

Using CSS means that content (HTML) is separated from design/styling.

Styling can be embedded in the HTML document but it is common practice to use an external .css file. Using a common CSS file for an entire site means that the styling of the site can be changed by editing a single file.


p { color: white; background-color: orange; }

This example tells the browser that all p (paragraph) tags are to be white text on an orange background.

Leave a Reply