If you want to have sets of links different colors then just adding a class works too: a.foo{color:orange;} a.bar{color:green;} – scunliffe Dec 8 '10 at 13:10 for me this was the best way to do it, otherwise, if you do it as mentioned in scunliffe's answer, ANY other a tags that you want to style the color of you'll have to override for each :link, :visited, etc. To change link color, CSS value should be assigned to the color styling property. The above code will change the link color to Red from default link color Blue. Refrain from implementing colored links that may impede user ability to distinguish links from regular text, or color links for purely aesthetic reasons. The a:link portion basically indicates that the block following, enclosed in the curly brackets, is to be applied to links. Here are the states you can change link color for with CSS: a:link – unvisited. Gmail uses a slightly different shade of blue for its links — this one, #2A5DB0 — than the main Google search page, which uses #2200CC.Google’s engineers wondered if the difference in link color would alter the rate of clickthroughs — is there an ideal shade of blue that encourages people to click links? How to remove the default link color of the html hyperlink tag ? How to open a link in a new window or new tab. We might want our visited links to be shown in red color and font size as 10px. Active 3 months ago. Let’s create a pure CSS effect that changes the color of a text link on hover… but slide that new color in instead of simply swapping colors. Make an individual link not have an underline If you want only one link not to be underlined on your web page, you can create a link similar to the code below. a:visited – visited link. The link color just stays black. Instead, you'll use basic CSS to define what color the text will appear in various elements on your page. By default, a link will appear like this (in all browsers): You can change the link state colors, by using CSS: Here, an unvisited link will be green with no underline. 2. How to change link color when hovering over a link in HTML. Examples might be simplified to improve reading and learning. vlink — this attribute changes the visited link color. 2. Internal method requires you to use the