Which CSS property is used to change the color of link the moment it is clicked
Share
Which CSS property is used to change the color of link the moment it is clicked
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Links can be styled with any CSS property (e.g. color, font-family, background, etc.).
Example
a {
color: hotpink;
}
In addition, links can be styled differently depending on what state they are in.
Example
/* unvisited link */
a:link {
color: red;
}
/* visited link */
a:visited {
color: green;
}
/* mouse over link */
a:hover {
color: hotpink;
}
/* selected link */
a:active {
color: blue; helpful you
}