CSS · Properties — CSS Basic User Interface

caret-shape

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

Syntax
caret-shape: auto | bar | block | underscore

Example

Try it

Notes

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

More in this group

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