If this is real anchor, you just use CSS for anchor
pseudo-classes,
a:link
,
a:visited
, and so on:
http://www.w3schools.com/css/css_pseudo_classes.asp[
^].
Try not to deviate from commonly accepted styles too far: the users should easily recognize links.
CSS color properties are
color
and
background-color
.
If you mean that you want to put not a real anchor, but render the strings showing the anchor syntax, first escape HTML using HTML
character entities:
http://www.w3schools.com/htmL/html_entities.asp[
^].
And then, style it the way you like. If you have even the basic idea how CSS works (it is mentioned in your question tags), you know how to do it. If not, see this and find documentation by links on this page:
http://en.wikipedia.org/wiki/Cascading_Style_Sheets[
^].
—SA