CSS caret-color property

Description

CSS caret-color defines the color of the insertion cursor.

Syntax

caret-color : color-name | rgb value | hexadecimal value

Property values

color-nameDefault

It defines black color of the caret.

caret-color: auto;

color-name

It defines red color of the caret.

caret-color: red;

rgb value

It is rgb notation of gree color. It represents green color of the caret.

caret-color: rgb(0,2550,0);

hexadecimal value

It is hexadecimal notation of blue color. It defines blue color of the caret.

caret-color: #0000ff;

Applicable to

It applies to editable elements.

#CSS digger
Was this article helpful?

 
×

Ctrl+D