Caret color
by Hamdi Gaied
HTML
<h3>Input is focused, check the caret color which is red</h3>
<input type="text" id="fullname" placeholder="John Doe">
CSS
body {
background: #1f2227;
color: #fff;
}
input {
caret-color: red;
font-size: 1rem;
}
JavaScript
document.getElementById("fullname").focus();