Harvard Extension School
CSCI E-12 Fundamentals of Web Site Development | Spring 2019

## 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