Complete CSS Selector Reference
The :active selector is used to select and style the active link.
A link becomes active when you click on it.
Tip: Use the :link selector to style links to unvisited pages, the :visited selector to style links to visited pages, and the :hover selector to style links when you mouse over them.
Note: :active MUST come after :hover (if present) in the CSS definition in order to be effective!
![]()
The :active selector is supported in all major browsers.
CSS tutorial: CSS Links
CSS tutorial: CSS Pseudo classes
Select and style unvisited, visited, hover, and active links:
Style links with different styles:
Complete CSS Selector Reference
Your message has been sent to W3Schools.