CSS caret-color Property

CSS caret-color Property


CSS caret-color Property
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.
 
Syntax -
caret-color: auto|color|initial|inherit;
 
Now we will see the values with their description -
Now we will see Example -
Exemple -
<!DOCTYPE html>
<html lang="en">
<style>
.one {
caret-color: red;
}
</style>


<input class="one" value="This is red caret" />

     
</body>

</html>



 
Output -