Cascading Style Sheets
class
attribute:<p class="lie">This is a lie</p>
.lie {color: purple;}
id
attribute:<p id="thebiglie">I will have it by tomorrow</p>
#thebiglie {color: purple;}
id
s should only be used one per document,
while class
can be used many times. :link
a hyperlink that has not been
visited. :visited
a hyperlink that has been
visited. :active
a hyperlink that is being clicked
on. :hover
an element over which the mouse is pointing. a:visited { color: black} a:active { color: red } a:hover { background: #ffa }
h1 em {color: blue;}
4 of 14