Author Topic: CSS Pseudo-class-How can you style link elements based on their states?  (Read 1347 times)

minhaj

  • Sergeant
  • *
  • Posts: 12
    • View Profile
How can you style link elements based on their states?
And these hover,visited,link are called ''pseudo class'' in CSS
So the scripts are:

a:link {
    color: green;
}
a:visited {
    color: red;
}
a:hover {
    color: yellow;
}