CSS Pseudo-classes
CSS pseudo-classes for targeting elements based on state or position. This category documents 78 CSS pseudo-classes entries, and each page gives you the full syntax, the accepted values with explanations, a working example, and browser support data. The entries are: :hover, :focus, :active, :visited, :link, :focus-within, :focus-visible, :target, :enabled, :disabled, :checked, :required, :optional, :read-only, :read-write, :placeholder-shown, :default, :indeterminate, :valid, :invalid, :in-range, :out-of-range, :empty, :first-child, :last-child, :only-child, :first-of-type, :last-of-type, :only-of-type, :nth-child, :nth-last-child, :nth-of-type, :nth-last-of-type, :not, :has, :is, :where, :root, :scope, :lang, and more. Not sure where to start? :hover and :focus are among the most used entries in this category. The pseudo-classes category is one of 21 categories in the CSS Reference, which covers 841+ entries in total. You can also search across every category from the search page, learn the topic end to end in the guides, or return to the CSS Reference homepage.