HTML & CSS Wiki
Advertisement

The color property is used in CSS and certain HTML tags to specify the color of the text. You can use HTML color codes as well as valid color names.

Values[]

Value Description
<color> Specifies a valid color name, or color code.


HTML examples:

<span style="color:orange;">ORANGE</span>

That will produce: ORANGE

<span style="color:#FFFF00;">YELLOW</span>

That will produce: YELLOW


CSS example:

h1 {
     color:orange;
}

See Also[]

Advertisement