Link and URL Pseudo-Classes
Learn to style and interact with links and URLs using powerful pseudo-classes for dynamic web experiences.
We'll cover the following
Link and URL pseudo-classes allow us to style hyperlinks based on their state, such as whether they've been visited or are currently active. They also enable us to style elements targeted by URL fragments.
:link
and :visited
The :link
applies to unvisited links, while the :visited
applies to links the user has already visited.
Get hands-on with 1400+ tech skills courses.