Basic Selectors - 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

rendered page

Copyright © David Heitmeyer