+ 2

How to use attribute for cheng the color of linkes

how to change links color by attributes

19th Feb 2017, 2:15 PM
Imran
Imran - avatar
5 odpowiedzi
+ 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; }
19th Feb 2017, 3:22 PM
[No Name]
[No Name] - avatar
+ 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.
19th Feb 2017, 4:45 PM
[No Name]
[No Name] - avatar
0
If you mean by attributes: [href], [href($, |, *, ... and others)=......] #yourID, .yourCLASS, { color: .........; } read here: https://www.w3schools.com/css/css_attribute_selectors.asp
19th Feb 2017, 4:09 PM
Yurii Zadorozhnyi
Yurii Zadorozhnyi - avatar
0
It look like you want to change the color by pseudo class: https://www.w3schools.com/css/css_pseudo_classes.asp .
19th Feb 2017, 4:11 PM
Yurii Zadorozhnyi
Yurii Zadorozhnyi - avatar
0
CSS is required for this
9th Mar 2017, 1:22 PM
Athar Shaikh
Athar Shaikh - avatar