CSS: / Home / ElementSelector

The Element Selector

  <head>
    <title>The Style Element</title>
    <meta charset="utf-8" />
    <style>
      a {
        background: lightsteelblue;
      }
    </style>
  </head>

In the above example, the element selector is for the Anchor element.

This means that all Anchor elements in the document will use the style properties listed in the declaration block.

An element selector is sometimes called a Type Selector.

<- StyleElement            ClassSelector ->
4ElementSelector