Links Different Styles

[Total: 0    Average: 0/5]

This example shows how to have links set up to have different style sheet properties.

Head Code:

<style type=text/css>
a.clr1
{  color : silver ; background-color : green ; }
a.clr2
{  color : GREEN ; background-color : SILVER ; }
</style>

Body Code:

This is <a  href="http://www.js-examples.com">a link that is</a> the normal color.
<BR><BR><BR>
This is <a class=clr1 href="http://www.js-examples.com/forum/">a link that is</a> one color.
<BR><BR><BR>
This is <a class=clr2 href="http://www.js-examples.com/consult">a link that is another</a> color.

Times Viewed: 5

Leave a Reply

Your email address will not be published. Required fields are marked *