Sometimes, we want to style text input caret with CSS.
In this article, we’ll look at how to style text input caret with CSS.
How to style text input caret with CSS?
To style text input caret with CSS, we set the caret-color
property.
For instance, we write
<input type="text" />
to add an input.
Then we write
input {
caret-color: rgb(0, 200, 0);
}
to set the caret-color
to the cxolor of the input caret.
Conclusion
To style text input caret with CSS, we set the caret-color
property.