Skip to content

Cascading Stylesheets

Cascading Stylesheets, or CSS for short, is a language used to style the DOM of a web page. CSS properties can be programmed directly within the page's HTML, or within a separate file that can be shared between pages.

Example

A simple example CSS document, that makes the page's background blue, would be like the following.

1
2
3
body {
    background-color: blue;
}

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Mozilla Public License 2.0.