Complete CSS Pseudo-Class Reference
Classified in Computers
Written on in
English with a size of 10.29 KB
CSS Pseudo-Class Reference
| Selector | Example | Description |
|---|---|---|
| :active | a:active | Selects the active link. |
| :checked | input:checked | Selects every checked element. |
| :disabled | input:disabled | Selects every disabled element. |
| :empty | p:empty | Selects every <p> element that has no children. |
| :enabled | input:enabled | Selects every enabled element. |
| :first-child | p:first-child | Selects every <p> element that is the first child of its parent. |
| :first-of-type | p:first-of-type | Selects every <p> element that is the first <p> element of its parent. |
| :focus | input:focus | Selects the element that has focus. |
| :hover | a:hover | Selects links on mouse over. |
| :in-range | input:in-range | Selects elements with a value within a specified range. |
| :invalid | input:invalid | Selects all elements with an invalid value. |