| Basic | Universal Selector | * | Selects all elements. |
| Basic | Element Selector | p | Selects all matching HTML elements. |
| Basic | Class Selector | .card | Selects elements with a specific class. |
| Basic | ID Selector | #main-header | Selects one element with a specific ID. |
| Basic | Selector List | h1, h2, h3 | Applies the same styles to multiple selectors. |
| Combination | Class + Element | button.primary | Selects a specific element with a class. |
| Combination | Multiple Classes | .button.primary | Selects elements that have both classes. |
| Combination | ID + Class | #app.theme-dark | Selects an ID element with a class. |
| Combinator | Descendant Selector | .card p | Selects all matching descendants inside a parent. |
| Combinator | Child Selector | .card > p | Selects direct children only. |
| Combinator | Adjacent Sibling Selector | h2 + p | Selects the next sibling immediately after another element. |
| Combinator | General Sibling Selector | h2 ~ p | Selects following siblings that match. |
| Attribute | Has Attribute | [disabled] | Selects elements that contain an attribute. |
| Attribute | Exact Attribute Value | [type="email"] | Selects elements with an exact attribute value. |
| Attribute | Contains Word | [class~="active"] | Selects attribute values containing a specific word. |
| Attribute | Starts With Prefix | [lang|="en"] | Selects exact value or value followed by a hyphen. |
| Attribute | Begins With | [href^="https"] | Selects values that begin with specific text. |
| Attribute | Ends With | [src$=".webp"] | Selects values that end with specific text. |
| Attribute | Contains Text | [href*="tutorials"] | Selects values containing specific text. |
| Attribute | Case-insensitive Match | [type="email" i] | Selects matching values regardless of case. |
| Pseudo-class | Hover | a:hover | Styles an element when pointer hovers over it. |
| Pseudo-class | Focus | input:focus | Styles an element when it receives focus. |
| Pseudo-class | Focus Visible | button:focus-visible | Shows focus styles mainly for keyboard users. |
| Pseudo-class | Active | button:active | Styles an element while it is being activated. |
| Pseudo-class | Visited | a:visited | Styles visited links with limited styling support. |
| Pseudo-class | Checked | input:checked | Selects checked checkboxes or radio buttons. |
| Pseudo-class | Disabled | button:disabled | Selects disabled controls. |
| Pseudo-class | Enabled | input:enabled | Selects enabled controls. |
| Pseudo-class | Required | input:required | Selects required form fields. |
| Pseudo-class | Optional | input:optional | Selects optional form fields. |
| Pseudo-class | Valid | input:valid | Selects valid form fields. |
| Pseudo-class | Invalid | input:invalid | Selects invalid form fields. |
| Pseudo-class | Read Only | input:read-only | Selects read-only fields. |
| Pseudo-class | Read Write | input:read-write | Selects editable fields. |
| Structural Pseudo-class | First Child | li:first-child | Selects the first child. |
| Structural Pseudo-class | Last Child | li:last-child | Selects the last child. |
| Structural Pseudo-class | Only Child | p:only-child | Selects an element that is the only child. |
| Structural Pseudo-class | First of Type | p:first-of-type | Selects the first matching element type. |
| Structural Pseudo-class | Last of Type | p:last-of-type | Selects the last matching element type. |
| Structural Pseudo-class | Only of Type | p:only-of-type | Selects the only element of its type. |
| Structural Pseudo-class | Nth Child | tr:nth-child(even) | Selects elements by position pattern. |
| Structural Pseudo-class | Nth Last Child | li:nth-last-child(2) | Selects by position from the end. |
| Structural Pseudo-class | Nth of Type | p:nth-of-type(2) | Selects matching type by position. |
| Structural Pseudo-class | Nth Last of Type | p:nth-last-of-type(2) | Selects matching type by position from the end. |
| Functional Selector | Not | .card:not(.featured) | Selects elements that do not match a selector. |
| Functional Selector | Is | :is(h1, h2, h3) | Groups selectors and uses highest specificity inside. |
| Functional Selector | Where | :where(section, article) | Groups selectors with zero specificity. |
| Functional Selector | Has | .card:has(img) | Selects an element based on its descendants. |
| Pseudo-element | Before | .link::before | Creates generated content before element content. |
| Pseudo-element | After | .link::after | Creates generated content after element content. |
| Pseudo-element | First Letter | p::first-letter | Styles the first letter of text. |
| Pseudo-element | First Line | p::first-line | Styles the first rendered line of text. |
| Pseudo-element | Selection | ::selection | Styles selected text. |
| Pseudo-element | Marker | li::marker | Styles list bullets or numbers. |
| Pseudo-element | Placeholder | input::placeholder | Styles placeholder text. |
| Pseudo-element | Backdrop | dialog::backdrop | Styles the backdrop behind dialogs. |