CSS – :active Selector
The :active selector is used to select the active link, which becomes active when it’s clicked.
The :active selector is used to select the active link, which becomes active when it’s clicked.
The :checked selector matches every checked input element for radio buttons, checkboxes, and option elements.
The :empty selector selects empty HTML elements, which means an element without any child elements or text.
The :first-child selector selects all HTML elements of a specified type that are also the first child of their parent element.
The :first-of-type selector selects all elements that are the first child of a specified type of their parent element.
The :hover selector selects elements when you mouse over them, and is commonly used for links and images with links, but can be used on any element.
The :in-range selector selects elements with a value that is within a specified range, and only works for input elements with min/max attributes.
The :invalid selector selects form elements with a value that does not validate according to the element’s settings.
The :lang selector is used to select elements with a lang attribute with a specified value (e.g., lang = “en” or lang = “en-us”).
The :last-child selector selects all HTML elements of a specified type that are also the last child of their parent element.
The :last-of-type selector selects all elements that are the last child of a specified type of their parent element.
The :link selector is used to select unvisited links, and will not style links you have already visited.
The :nth-child() selector selects all specified elements that are the nth child of their parent, regardless of all the children’s types.
The :nth-last-child() selector selects all specified elements that are the nth child of their parent counting from the last child.
The :nth-last-of-type() selector selects all elements that are the nth child of a specified type, of their parent, counting from the last child.
The :nth-of-type() selector selects all elements that are the nth child of a specified type, of their parent.