A CSS selector is a pattern rule that matches style rules to a specific element(s). A CSS selector is used in HTML documents. The selector is placed in a rule set and is followed by more conditions which determine the presentation of the specific element(s) in question. These patterns or selectors span from simple to complex.
The different kinds of selectors:
- Basic Selectors