pseudo-element
::checkmark — CSS reference
Styles the marker for the selected option inside a customizable select. The actual selected state comes from the option, not from the marker. Generated content is not a substitute for accessible option text.
Formal Syntax & Structure
css syntaxcss
::checkmark { color: green; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>::checkmark</title><style>body{margin:16px;font:16px/1.5 system-ui;background:white;color:#172033} .demo{background:#dbeafe;box-sizing:border-box} button,select{font:inherit}select,select::picker(select){appearance:base-select}option::checkmark{color:rgb(0,128,0)}</style><body><label for="choice">Choose a course</label> <select id="choice"><option value="css">CSS</option><option value="html">HTML</option></select></body></html>