selector {
property:value ;
}

select element, class, id

element
h2,h3 {
font-family:somefont ;
color:red;
}

class

i a m a div

.classname {

}

div.classname {}
applies only to div with class = “calssname”

id

#idname {
}

applying css to pages and elements

parent/child and containers

nav a => any anchor inside nav
nav > a => direct child anchor of nav