Styling Links in CSS


Style links differently depending on their state: :link, :visited, :hover, :active.

Source Code

a:link {
    color: green;
}
a:visited {
    color: gray;
}
a:hover {
    color: red;
}
a:active {
    color: yellow;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments