multiple link attributes in one page

liunx

Guest
What if I wanted to put multiple link attributes in one html page? for instance, have one set that would have the a:link red, then the other would have the a:link brown...You can either use CSS classes, like this:

<style type="text/css">
a.class1:link { color: red; }
a.class2:link { color: brown; }
</style>

<a class="class1" ...>
<a class="class2" ...>

Or you can style a single link like this (though you can't use pseudoclasses):

<a style="color: red" ...>

Adam
 
Back
Top