CSS Day 1

  • Comments Off on CSS Day 1

Practice resource websites:

Codeacademy.com
w3schools.com

 

 

What is CSS?
cascading style sheets
“Rule” for HTML elements

 

Pasted Graphic.tiff

 

selector {property:value; property: value;}

 

 

h1 {

property: value;

property: value;

}

 

SELECTORS:

1. TAGS

 

2. ID – always preceded by # (hash tag)

#nameofrule

ID applied once per html document

 

3. CLASS – always preceded by a . (period)

.nameofrule

Class applied infinite per html document