%26lt;style type=%26quot;text/css%26quot;%26gt;
.slink a:link {color: #FF0000}
.slink a:visited {color: #00FF00}
.slink a:hover {color: #FF00FF}
.slink a:active {color: #0000FF}
.slink {}
%26lt;/style%26gt;
%26lt;span class=%26quot;slink%26quot;%26gt;%26lt;a href=%26quot;special.colored.link%26quot;%26gt; text %26lt;/a%26gt;%26lt;/span%26gt;How do you change link color (after and before click) in html for a certain link only?re: the above.
The span is completely redundant. You can set the class of the a element just as well without using a span.