The caret-color CSS property specifies the color of the caret, the visible indicator of the insertion point in an element where text and other content is inserted by the user's typing or editing.
HTML
<input id="example" />
CSS
#example {
caret-color: red;
}
Resources: