:link CSS Pseudo Class
Description
The :link
pseudo-class applies to links that have not yet been visited by the user, and sets the style for them.
Syntax
element:link { ... }
Example
<p><a href="#">Test link number 1</a></p>
<p><a href="#">Test link number 2</a></p>
a:link {
color: #3e79f9;
font-weight: bold;
}
Browser Support
Desktop | |||||
3 | 12 | 1 | 1 | 3.5 | 1 |
Tablets / Mobile | |||||
![]() |
|||||
1.5 | 18 | 4 | X | 3.2 | X |
Last updated by CSSPortal on: 25th November 2019
CSS Pseudo Elements
CSS Pseudo Classes
- :active
- :checked
- :default
- :disabled
- :empty
- :enabled
- :first-child
- :first-of-type
- :focus
- :fullscreen
- :hover
- :in-range
- :indeterminate
- :invalid
- :lang
- :last-child
- :last-of-type
- :link
- :not
- :nth-child
- :nth-last-child
- :nth-last-of-type
- :nth-of-type
- :only-child
- :only-of-type
- :optional
- :out-of-range
- :read-only
- :read-write
- :required
- :root
- :target
- :valid
- :visited