Cascading Style Sheets (CSS)

Did you notice that headings and paragraphs have a unique style in this course? That some words appear highlighted? These presentation styles are defined in a separate file called a Cascading Style Sheet (CSS), which is then linked to each HTML page.

An external CSS file defines the formatting for as few or as many HTML elements as you want.

The truly great benefit of putting style definitions in a separate CSS file is that you can include all of these definitions in a single file and link it to every page in a web site. Then, if you make a style modification, you make it in one place and it automatically gets applied to every page that links to that CSS file.

Let's see how this all works...