Color

noun

say it: “KUL-er” /ˈkʌlər/

The CSS property that sets the color of an element's text. You can give it a name like teal, a hex code like #2a9d8f, or an rgb() or hsl() value.

How do you set a color in CSS?

The color property sets text color. Colors can be names, hex codes, rgb() values and more.

.error { color: crimson; }
.success { color: #2e7d32; }

In a sentence

  • “I set color to white on the dark header so the band's name would stand out.”

Level: Novice · More CSS terms at this level

Updated