Easy Tutorial
❮ Sel Nth Last Child Pr Font Font ❯

CSS :visited Selector

Complete CSS Selector Reference

Example

Select the style for visited links:


Definition and Usage

The :visited selector adds special styles to visited links.

Tip: Use the :visited selector to set the style for visited page links, the :hover selector for the style of links when the mouse is hovering over them, and the :active selector for the style when you click on a link.


Browser Support

The numbers in the table specify the first browser version that supports the property.

Selector
:visited 4.0 7.0 2.0 3.1 9.6

Related Articles

CSS Tutorial: CSS Links

CSS Tutorial: CSS Pseudo-classes


More Examples

Example

Activated, visited, unvisited, or when the mouse hovers over the link:

Example

Different styles for links:


Complete CSS Selector Reference

❮ Sel Nth Last Child Pr Font Font ❯