CSS · Properties — CSS Basic User Interface

caret-color

The CSS caret-color property. Initial value: auto. Inherited.

Syntax
caret-color: auto | <color>

Example

Try it

Notes

Media: interactive. Applies to: textOrElementsThatAcceptInput. Computed value: asAutoOrColor.

More in this group

appearance caret caret-animation caret-shape field-sizing interactivity interest-delay interest-delay-end

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course