Pseudo-classes in HTML are keywords signifying a specific state of an element, for example that an element is hovered over. They are written starting with a colon like :hover

SelectorExample description
:activeSelects the active link
:checkedSelects every checked <input> element
:disabledSelects every disabled <input> element
:emptySelects every <p> element that has no children
:enabledSelects every enabled <input> element
:first-childSelects every <p> elements that is the first child of its parent
:first-of-typeSelects every <p> element that is the first <p> element of its parent
:focusSelects the <input> element that has focus
:hoverSelects links on mouse over
:in-rangeSelects <input> elements with a value within a specified range
:invalidSelects all <input> elements with an invalid value
:lang(language)Selects every <p> element with a lang attribute value starting with “it”
:last-childSelects every<p>elements that is the last child of its parent
:last-of-typeSelects every<p> element that is the last <p> element of its parent
:linkSelects all unvisited links
:not(selector)Selects every element that is not a <p> element
:nth-child(n)Selects every <p> element that is the second child of its parent
:nth-last-child(n)Selects every <p> element that is the second child of its parent, counting from the last child
:nth-last-of-type(n)Selects every <p> element that is the second <p> element of its parent, counting from the last child
:nth-of-type(n)Selects every <p> element that is the second <p> element of its parent
:only-of-typeSelects every <p> element that is the only <p> element of its parent
:only-childSelects every <p> element that is the only child of its parent
:optionalSelects <input> elements with no “required” attribute
:out-of-rangeSelects <input> elements with a value outside a specified range
:read-onlySelects <input> elements with a “readonly” attribute specified
:read-writeSelects <input> elements with no “readonly” attribute
:requiredSelects <input> elements with a “required” attribute specified
:rootSelects the document’s root element
:targetSelects the current activenews element (clicked on a URL containing that anchor name)
:validSelects all <input> elements with a valid value
:visitedSelects all visited links