Color Picker

We use hex codes to indicate the color we want to appear in the browser. These are six-digit codes that represent the amount of red, green, and blue in a color. These numbers are preceeded by a pound or hash symbol (#) sign.

Example: #ee3e80

CSS Handling of Color

Changing the color of type:

h1 { color: #ee3e80 }

Changing the background color of an element

CSS  treats each HTML element as if it appears in a box, and the background-color property sets the color for the background of that box. If you do not specify a background color, then the background is transparent.

body { background-color: #ffff00;}

h1 {background-color: #ee3e80;}

Leave a Reply

Your email address will not be published. Required fields are marked *