Text

Backgrounds are not the only element that can hold a color value. Likewise, text can be colored using the color: property.

At this stage, you should use element selectors to “point” to structural text elements, like h1, p, or lists. This will style all elements of that type cohesively.

Additionally, you can align text using text-align: . You are now familiar with text-align: left (the default) and text-align: center through your homework assignments.

IMPORTANT: You may remember that you can give an element multiple style properties. In the example above, the headings are both colored and center-aligned. You must always separate these properties with a semi-colon, ;.