Element selectors select all elements of a specific HTML tag. Best used when you want all elements of the same type to share a style. p {color: blue;} Specificity 1 (lowest)
Group selectors select multiple elements at once. Best used when multiple elements should share the same style. h1, h2 {color: blue} Specificity 1
Descendant selectors select elements that are inside of other elements. Best used to style elements only when they are inside a specific parent. div p {color:blue;} Specificity 2
Class selectors select elements with a specific class attribute. Best used to style multiple elements the same way. .highlight {color:blue;} Specificity 10
ID selectors select elements with a unique ID. Best used to style a specific element #intro {color:blue;} Specificity 100 (highest)
Universal selectors select all elements on the page. Best used to apply general styling. * {font-size: 12;} Specificity 0
Pseudo selectors select elements based on their state. Best used to style interactive elements. a:hover{color:blue;} Specificity 10
Pseudo elements select part of an element. Best used to add decorative content or styling to part of a element. p::first-letter {color:blue;} Specificity 10