CSS · Properties — CSS Basic User Interface

caret

The CSS caret property. Initial value: caret-color,caret-animation,caret-shape. Inherited.

Syntax
caret: <'caret-color'> || <'caret-animation'> || <'caret-shape'>

Example

Try it

Notes

Media: interactive. Applies to: textOrElementsThatAcceptInput. Computed value: caret-color,caret-animation,caret-shape.

More in this group

appearance caret-animation caret-color 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