Prev Source
Next Source

Caret

original source

caret in CSS is a shorthand property that combines the [caret-color](https://css-tricks.com/almanac/properties/c/caret-color/) and [caret-shape](https://css-tricks.com/almanac/properties/c/caret-shape/) properties into a single declaration. So, we get to write this:

.element {  
  caret: #ff7a18 underscore;  
}  

…which is akin to writing this:

.element {  
  caret-color: #ff7a18;  
  caret-shape: underscore;  
}  

Date
March 22, 2024