CSS
CSS LinksCSS Links
CSS styles clickable anchor links in different states.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
CSS targets anchor tags to change how links look. Because users interact with links, CSS provides pseudo-classes to style them when hovered, clicked, or previously visited. This gives users visual feedback while navigating.
Example
Example
Key Points
- The `:link` pseudo-class styles unvisited links.
- The `:visited` pseudo-class styles clicked links.
- The `:hover` pseudo-class triggers when the mouse is over the link.
- The `:active` pseudo-class triggers during the exact moment of a click.