CSS Anatomy
When using CSS, there is a different sequence and different set of symbols than when coding HTML. CSS starts with a selector (such as “header”) and that name (tag) is followed by a curly bracket. Then CSS automatically gives you another curly bracket, and you work between these. Within the brackets you can classify any style traits that you want to have for this “selector” such as the width, color, margins, etc. but for each of these, you have to type the trait you are specifying, then a colon, the specification, and then a semicolon. (Ex: background-color: red;)
Three ways to Style
There are three different ways you can add CSS to your web page. Inline Styles is when you type style attributes into your HTML. Embedded styles is when CSS styles are put in the head portion of your HTML. Linked Styles is when you link a CSS Style sheet to your HTML, used when creating a website that has multiple pages.
Cascade
CSS Stands for Cascading Style Sheets. This means that everything you classify in your CSS “cascades” (falls down) from one level of the CSS to every level below that. This means that if you classify that a certain tag (lets use h1) is red, it will always be red everywhere it is used unless you later specify that it is no longer red. With CSS cascading, the last rule you apply to a certain tag is considered the most implant by your computer, and is therefore the one that will show up on your website.