selector
selector-list — CSS reference
Groups alternatives. An element need match only one branch. An ordinary list with an invalid branch normally invalidates the entire rule.
Formal Syntax & Structure
css syntaxcss
selector, selectorWorking Example
Example Snippetcss
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Selector lab</title><style>:where(.sample) { color: rgb(32, 32, 32); }.notice, .warning { color: rgb(0, 96, 80); }</style></head><body><p id="a" class="sample notice">A</p><p id="b" class="sample">B</p></body></html>