Color


Premium Content - Free Preview

color

The color property is used for setting the color of text, while background-color is used to set the background color of an HTML element. Color can also be used for other properties, such as border-color.

Until now we used keywords for color, such as red and green. Here are some other common keywords you can use:

Keyword RGB hex values
black #000000
silver #c0c0c0
gray #808080
white #ffffff
maroon #800000
red #ff0000
purple #800080
fuchsia #ff00ff
green #008000
lime #00ff00
olive #808000
yellow #ffff00
navy #000080
blue #0000ff
teal #008080
aqua #00ffff
orange #ffa500



End of Free Content Preview. Please Sign in or Sign up to buy premium content.

Contact Us
Sign in or email us at [email protected]