Coding Class

Colors

CSS provides 145 colors names, from the most basic (black, white, orange, yellow, blue…) to the more specific (lawngreen, orchid, crimson…).

body{ color: black;}
a{ color: orange;}

Because the RGB model is directly related to how colors are physically rendered, it has become a CSS color unit.

a{ color: rgb(219, 78, 68);}

The rgba color unit is rgb to which we add an alpha value (ranging from 0 to 1, in decimal values), which defines how transparent the color is:

body{ color: rgba(0, 0, 0, 0.8);}
21.07.2016 - HTML & CSS
Coding Class, Miami Ad School, Sebastian Martens - HTML&CSS Examples provided by http://marksheet.io, 2016