Color Units

There are several ways of specifying what color to use in CSS. All of them should work in both CSS1 and CSS2 browsers.

Hexadecimal Notation

p { color: #ff0000; }
p { color: #f00; }

Functional Notation

p { color: rgb( 255, 0, 0); }
p { color: rgb( 100%, 0%, 0%); }