coloring the links in CSS

Last modified on May 26th, 2018 at 1:47 pm

How to color the links in CSS?

Example:

<html>
<head>
<style>
/* link is not visited still */
a:link {
color: green;
}/* link is visited before */
a:visited {
color: blue;
}/* when mouse reached the link */
a:hover {
color: pink;
}/* Link is opened at the current moment */
a:active {
color: red;
}
</style>
</head>
<body><p><a href=”t4tutorials.html” target=”_blank”>Click here for T4T</a></p>
</html>

 

 

Pr. Fazal Rehman Shamil
Publisher of Internatonal Journal of Software Technology & Science ISSN: 2616- 5325
Instructor, Researcher,SEO expert, Web Master, Article Writer and Poet. Feel free to contact.