A CSS selector is the part of a CSS rule which determines which portions of the document will be matched by the rule. A stylesheet consists of zero or more rules. Rules consists of the selector and and a declaration block, which consists of zero or more declations.