More about CSS

What does a rule look like? What is the syntax? A rule is broken down into two distinct parts:

The diagram below shows you the anatomy of a rule.

diagram of CSS rule

Two ways to write the code:

h1 {
color: blue;
}

OR you can also arrange your code this way:
h1 {color: blue;}

 

 

Some good resources:

http://www.w3schools.com/css/default.asp

http://www.utexas.edu/learn/css/

http://friendlybit.com/css/beginners-guide-to-css-and-standards/