+ 2
How to use attribute for cheng the color of linkes
how to change links color by attributes
5 Answers
+ 3
you can change the color of the link with CSS.
/* unvisited link */
a:link {
   color: orange;
}
/* visited link */
a:visited {
   color: red;
}
/* mouse over link */
a:hover {
   color: aqua;
}
/* selected link */
a:active {
   color: blue;
}
+ 1
Yes, in case of links ( or anchor tag) an ideal way to give it a style is using pseudo classes.
You can also set style using
a {
color:red;
}
This will set text color red to all the links. Unlike pseudo class, all the links will remain colored red, even if you visited, non visited or hover.
0
If you mean by attributes:
[href], [href($, |, *, ... and others)=......] #yourID, .yourCLASS, {
color: .........;
}
read here: https://www.w3schools.com/css/css_attribute_selectors.asp
0
It look like you want to change the color by pseudo class:
https://www.w3schools.com/css/css_pseudo_classes.asp .
0
CSS is required for this