Using Basic Selectors to Apply Styles
The use different kinds of selectors to target different portions of web pages to style.
A CSS document contains rules with two parts:
- Selectors
- Properties
A selector identifies what portion of your web page gets styled. Within a selector are
one or more properties and their values.
The property tells the browser what to change, and the value lets the browser know
what that change should be.
For instance, in the following declaration block example, the selector tells the browser
to style the content marked up with p elements in the web page to font size 120% of the default size with color #e5e5e5e:

selector


