Here we created 2 different classes (named highlight and highlight2)
<STYLE> <!-- a.hihglight1{background-color: rgb(255, 255, 0);} a.hihglight2{background-color: rgb(0, 255, 0);} //--> </STYLE> |
To produce these different links appearance:
Link1: This will be highlighted
Link2: This will not be highlighted
Link3: This will be highlighted, too
The html code for the links is as follows:
<a class="highlight1" HREF="index.html">This will be highlighted</a> <a HREF="index.html">This will not be highlighted</a> <a class="highlight2" HREF="index.html">This will not be highlighted, too</a> |
The first link uses the highlight1 class.
The second link is a regular link, it will not be highlighted.
The third link uses the highlight2 class.
(C). F. Permadi