Copyright © tutorialspoint.com

CSS Pseudo-class :visited

previous next


Description:

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:

Possible Values:

Applies to:

Anchor / Link element.

Example:

Following is the example which demonstrates how to use :link class to set the link color.

<style type="text/css">
a:link {color:#000000}
</style>
<a href="/html/index.htm">Black Link</a>

This will produce following black link:

Black Link

To Become more comfortable - Do Online Practice


previous next

Copyright © tutorialspoint.com