CSS Selectors

What They Do:

CSS selectors provide a way to specify what elements on the page get which styles. The "selector" is the text in front of the curly braces. There are 3 primary types of CSS selectors:

The Syntax:

Tag Selector

body{}

ID Selector

#myID{}

Class Selector

.classname{}