Home Up

Selectors.

Select "tag".

a { color: red; }
A link.

Select ".class".

<div class="poem"> The sun. The moon. The happy ending. <div>
.poem { font-style: italic; }

Select "#id".

<div id="lorem"> Lorem ipsum. <div>
#lorem { border: 1px solid black; }