Selectors
A selector decides which elements a CSS rule applies to. There are a few basic kinds you'll use constantly.
Element selector
Targets every element of a given tag name:
Class selector
Targets any element with a matching class attribute. Written with a leading period:
ID selector
Targets the one element with a matching id attribute. Written with a leading hash symbol. An id should only be used once per page.
Grouping selectors
Apply the same rule to several selectors at once by separating them with commas: