How to Prevent a Link From Changing Color Once It Is Visited

When you are designing a website, you want each page to be visually appealing, such as using colors that complement one another. The background color should complement the text color, and vice versa. There is a problem with text links in that, without special coding, a visited link will automatically turn blue. By using special coding, you can ensure that your visited links remain the same color as other links on your page.

Instructions

    • 1

      Log into the "Control Panel" of your Web hosting account.

    • 2

      Select "File Directory" to access all of your Web page files.

    • 3

      Select the Web page that contains the link. Click "Edit" to access the page's HTML editor.

    • 4

      Locate the "<HEAD> and "</HEAD>" tags inside of the HTML editor.

    • 5

      Insert the below HTML code anywhere between the two head tags. You can edit the code to reflect any color you desire. For instance, if your regular link color and active link color is yellow, make the "visited" link color yellow.

      <style>

      A:link{color:yellow}

      A:visited{color:yellow}

      A:active{color:yellow}

      </style>

    • 6

      Click "Save" to save the changes to your link. If you have a "Publish" button, click it to make your changes go live on your Web page.

    • 7

      Repeat steps three through five for each page on your website that requires link customization.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured