Change the color of a link in HTML by CSS
Changing the color of links in html is very simple. The recommended way of changing html link colors is by using CSS. CSS stands for Cascading Style Sheets and it's a way of styling practically every html tag through a variety of different css properties.
The CSS property for changing the color of a link is simply "color". Below is an example on how to do it.
HTML for the link
A link styled with external CSS
A link styled with inline CSS
The CSS to change the link color
a#customname {
color: blue;
}
Result:
A link styled with external CSS
A link styled with inline CSS
You're also not limited to using color names for the color property. If you have a very specific color you want to use, you can specify the 6 character hexademical value of the color. Like this: color:#E01B4C; Here's a handy color picker site.
Share Tweet