CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS caret color Property

CSS caret-color Property



The caret-color property is used to specify the color of the cursor/caret in inputs, textareas, or any element that is editable.


Default Value:-


Its default value is auto.




Its syntax is:- caret-color: auto | color | initial | inherit;


Further Explanation:-


Value Description
auto Browsers use the currentColor for the caret/cursor
color Specifies a color to use for the caret.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS