Harvard Extension School, Fall 2018
CSCI E-12 Fundamentals of Web Site Development

## Basic Selectors - elements, class, id

- elements
- class/id

### element selectors

    p {
      background-color: white;
      color: maroon;
    }

    ul {
      border: medium solid green;
    }

    li {
      background-color: lightsalmon;
    }

    h1,
    h2,
    h3 {
      background-color: black;
      color: white;
    }

CSS element selector example

Copyright © David Heitmeyer