CSS Lesson 1: Background and Font Colors

What Does CSS Do?
• Breaks HTML into elements and gives rules to how each element should appear.
• Selectors make up rules that you declare.
• When making a declaration, you must have both the element properties and the values for each property.
• CSS is usually in a separate document.

Click here to view all the code on GitHub!

Breaking the CSS Down:
To Change the background of the body to yellow:
body{
background-color: #FFFF00;
}

To change the background and font color of Heading Level #1:
h1{
background-color: #F5DEB3;
color: #FF0000;
}

To change the background and font color of the paragraph:
p{
background-color: #0000FF;
color: #FFFFFF;
}

Good CSS Color Code Resource!