Property | Description |
::after | Describes generated content after an element’s content. |
::before | Describes generated content before an element’s content. |
::first-letter | Represents the first letter of an element. |
::first-line | Describes the contents of the first formatted line of an element. |
:active | Applies while an element is being activated by the user. |
:checked | Applies to elements that have the selected and checked attributes. |
:disabled | Represents user interface elements that are in a disabled state. |
:empty | Represents an element that has no children. |
:enabled | Represents user interface elements that are in an enabled state. |
:first-child | Represents an element that is first in a list of siblings. |
:first-of-type | Represents an element that is the first sibling of its type. |
:focus | Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input). |
:hover | Applies while the user designates an element with a pointing device, but does not necessarily activate it. |
:lang | Represents an element based on its language. |
:last-child | Represents an element that is last in a list of siblings. |
:last-of-type | Represents an element that is the last sibling of its type. |
:link | Applies to links that have not yet been visited. |
:not() | Represents elements that do not match a given list of selectors. |
:nth-child() | Selects child elements based on their index. |
:nth-last-child() | Selects child elements based on their index, counting from the end. |
:nth-last-of-type() | Selects elements of the same type (tag name), based on their index counting from the end. |
:nth-of-type() | Selects elements of the same type (tag name), based on their index. |
:only-child | Represents an element without any siblings. |
:only-of-type | Represents an element that has no siblings of the same type (tag name). |
:root | Represents an element that is the root of the document. |
:target | Selects the target element of the document. |
:visited | Applies once the link has been visited by the user. |