Visit http://www.csszengarden.com/ for some ideas on how to use colors and styles on your website.
Styling Text with CSS
Adding style using class
In css, add the following code:
.apples {
color: red;
}
In HTML, add the class “apples” to show text in red:
apples
Adding style using id
In css, add the following code for the id “summer”
#summer {
color: yellow;
}
In HTML, add the id “summer” to style the word to be yellow.
Summer