CSS selectors are patterns that are used to reference HTML elements, primarily for the purpose of styling them using CSS.