The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. currentcolor may be used as an indirect value on other properties and is the default for other color properties, such as bo
The <color> CSS data type represents a color. A <color> may also include an alpha-channel transparency value, indicating how the color should composite with its background.
See also Multiple backgrounds The<color>data type Other color-related properties:color,border-color,outline-color,text-decoration-color,text-emphasis-color,text-shadow,caret-color, andcolumn-rule-color
The color-index CSS media feature can be used to test the number of entries in the output device's color lookup table.
The -webkit-text-stroke-color CSS property specifies the stroke color of characters of text. If this property is not set, the value of the color property is used.
The border-top-color CSS property sets the color of an element's top border. It can also be set with the shorthand CSS properties border-color or border-top.
Default- JavaScript (camel) cased property names Hyphen- CSS (kebab) cased property names Fallback- Also accepts array of values e.g.string | string[] At-rule types At-rule interfaces with descriptors. TypeScript: These will be found in theAtRulenamespace, e.g.AtRule.Viewport. ...
In CSS Box Alignment the alignment subject is the thing (or things) being aligned by the property. 12 Alpha (alpha channel) Alpha, Alpha Channel, Drawing, Glossary, Graphics, Translucency, Translucent, Transparency, Transparent, WebGL, WebXR, channel, color, pixel Colors are represented in digit...
String literals for color names are listed in the CSS color reference. Return value A string containing a HTML element. Description If you express color as a hexadecimal RGB triplet, you must use the format rrggbb. For example, the hexadecimal RGB values for salmon are red=FA, green=80, ...
Default- JavaScript (camel) cased property names Hyphen- CSS (kebab) cased property names Fallback- Also accepts array of values e.g.string | string[] At-rule types At-rule interfaces with descriptors. TypeScript: These will be found in theAtRulenamespace, e.g.AtRule.Viewport. ...