Pseudo Classes & Elements
© 2013 TutorialsPoint.COM
CSS Pseudo-class :visited
The :visited pseudo-class is used to add special effect to a visited link.
While defining pseudo-classes in a <style>...</style> block, following points should be taken care:
a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.
a:active MUST come after a:hover in the CSS definition in order to be effective.
Pseudo-class names are not case-sensitive.
Pseudo-class are different from CSS classes but they can be combined.
- color: Any valid color value.
Anchor / Link element.
Following is the example which demonstrates how to use :link class to set the link color.
<a href="/html/index.htm">Black Link</a>
This will produce following black link:
To Become more comfortable - Do Online Practice