How to Disable the Color of Visited Links
Cascading style sheets (CSS) helps you format text, links and elements on a Web page. A visited link is a hyperlink you've clicked previously on a Web page. You can instruct CSS to change the color of visited links, so they appear the same as unvisited links the next time someone goes to the page. In CSS, "a:link" handles links you haven't visited; "a:visited" handles visited links; and "a:hover" handles links as your mouse rolls over them.
Instructions
-
-
1
Open the HTML file you want to modify in a text editor, such as Notepad, TextPad or EditPad. To open the file, select "File" and "Open" from the menu and double-click the file in the dialog box.
-
2
Place your cursor between the opening and closing "head" tags.
-
-
3
Give your visited anchor link (a:visited) the same color as your unvisited link (a:link) and set your hover values to your preferred color, such as:
<style type="text/css">
<!--
a:link { color:blue; }
a:visited { color:blue; }
a:hover { color:green; }
-->
</style>
-
4
Select "File" and "Save" from the menu to preserve the changes.
-
1
References
- Photo Credit Burke/Triolo Productions/Brand X Pictures/Getty Images