Illustrating color styles

Be sure to view the source code.

Colors!

This document has a background color and text (foreground) color for the body. They are specified using style rules in a style element. Rules for the body apply to the entire document.

The style rules

One of the colors is named and the other is given numerically.

        body {background-color: #ffff00; 
              color: red}