All selector types with descriptions, examples, and specificity values.
* { box-sizing: border-box; }p { margin: 0; }.card { padding: 16px; }#header { position: sticky; }a[href] { color: blue; }input[type="text"][class~="active"][lang|="en"]a[href^="https"]a[href$=".pdf"][class*="icon"]a:hover { text-decoration: underline; }input:focus { outline: 2px solid blue; }button:active { transform: scale(0.98); }a:visited { color: purple; }li:first-child { font-weight: bold; }li:last-child { border-bottom: none; }tr:nth-child(even) { background: #f5f5f5; }p:nth-of-type(2) { color: gray; }input:not([type='submit']):is(h1, h2, h3) { font-weight: bold; }:where(ul, ol) { padding-left: 1.5em; }div:has(img) { display: grid; }input:checked + label { color: green; }button:disabled { opacity: 0.5; }p:empty { display: none; }:root { --spacing: 8px; }.icon::before { content: "▶"; }a::after { content: " ↗"; }p::first-line { font-variant: small-caps; }p::first-letter { font-size: 3em; float: left; }input::placeholder { color: #aaa; }::selection { background: #ff0; color: #000; }li::marker { color: var(--accent); }nav a { color: white; }ul > li { list-style: disc; }h2 + p { margin-top: 0; }h2 ~ p { color: gray; }h1, h2, h3 { line-height: 1.2; }