CSS – :nth-last-of-type() Selector
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-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.
The :only-child selector selects every element that is the only child of its parent. If the parent has multiple child elements, it will NOT be selected.
The :only-of-type selector selects every element that is the only child of its type, of its parent.
The :optional selector selects form elements which are optional (those without the required attribute).
The :out-of-range selector selects elements with a value that is NOT within a specified range, and only works for input elements with min/max attributes.
The :read-only selector selects form inputs which are “readonly” (those with a “readonly” attribute).
The :read-write selector selects form inputs which are “readable” and “writeable” (those with no “readonly” or “disabled” attributes).
The :required selector selects form inputs which are required (those with the required attribute).
The :root selector matches the document’s root element, which is always the HTML element.
The ::selection selector matches the portion of an element that is selected by a user, and is most often used to set the background color of selected text.
The :target selector selects the current active target anchor element on the page (the element being linked to).
The :valid selector selects form inputs with a value that properly validates according to the element’s settings.