Updated: 2026-07-11
βοΈ Link State Styles
Configure styles for each link pseudo-class state.
π΅ Link Colors
px
underline
none
overline
line-through
dotted
dashed
wavy
2px
200ms
ποΈ Live Preview
Hover over and click the links to see state changes in action.
Try these link states:
π Normal Link (hover me) π Visited Link (click me) β‘ Active Link (hold me)
π Normal Link (hover me) π Visited Link (click me) β‘ Active Link (hold me)
π» CSS Code
π CSS Link Styling Explained
CSS links use pseudo-classes to define different interaction states. The four states follow the LoVe/HAte rule: :link β :visited β :hover β :active.
text-decoration Property
Modern CSS supports combined text-decoration values: text-decoration: underline dotted #ff0000 controls line style, thickness, and color simultaneously. Supported in Chrome 76+, Firefox 70+, Safari 12.1+.
Transition Effects
Smooth transitions between link states improve user experience. Use 150-300ms duration for natural-feeling state changes.