Boot Camp–CSS–Color

 

The next section is all about color:

http://htmldog.com/guides/css/beginner/colors/

It mentions all the different ways to describe color, from key words, to hex code, rbg, and even HLS colors.

Either color or background color can be used:

 

p {

     color:  green;

     background-color: black;

}

 

Note that you need to surround CSS with { and } and delimit by : and ;

; end the css

: splits the selector and the property.

 

It’s always best to separate everything with white space, and not only makes it more readable, but easier to change.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *