property
Caret color — CSS reference
Changes the insertion indicator color in editable text, not the mouse cursor. Keep the indicator distinguishable from its background. Auto lets the browser choose an appropriate color.
Formal Syntax & Structure
css syntaxcss
caret-color: rgb(255, 0, 0);Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>caret-color</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#a{caret-color:rgb(255, 0, 0)}</style><body><label>Search <input id="a" value="CSS"></label></body></html>