Set the link color with CSS

CSSWeb DevelopmentFront End Technology

Use the :link class to set the link color. Possible values could be any color name in any valid format. 

Example

You can try to run the following code to set link color −

<html>
   <head>
      <style>
         a:link {
            color:#FF0000
         }
      </style>
   </head>
   <body>
      <a href = "">Demo Link</a>
   </body>
</html>
raja
Published on 18-Apr-2018 11:12:54
Advertisements