Computer >> Computer tutorials >  >> Programming >> Javascript

Set the Color of links with CSS


To set the link color with CSS, you can try to run the following code:

Example

<html>
   <head>
      <style>
         a:link {
            color:#000000
         }
      </style>
   </head>
   <body>
      <a href = "">My Link</a>
   </body>
</html>