Basic css structure

how to add a selector for <h1> in style.css?
exercise 2…

The term, ‘selector’ is synonymous with ‘element’ since it is element nodes that we are selecting.

<h1></h1>  =>  HTML top level heading element

h1         =>  CSS top level heading selector

Of course, a selector is not much use without a selector rule.

selector {
    /* declaration block containing list of properties */
    property-name: property-value;
}
2 Likes