keyword
Highlight — CSS reference
Background for selected items, such as selections in controls. The actual value depends on the browser, color scheme and user palette; do not assume a fixed RGB value. Pair foreground and background appropriately. This example uses a matching palette pair, not a contrast certification.
Formal Syntax & Structure
css syntaxcss
background-color: Highlight;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Highlight</title><style>body{margin:8px;font:16px/1.5 sans-serif}*{box-sizing:border-box}#a{background:Highlight;color:HighlightText;padding:12px}#b{background-color:Highlight}</style><body><p id="a">System palette sample</p><span id="b">Comparison</span></body></html>