...

/

Link and URL Pseudo-Classes

Link and URL Pseudo-Classes

Learn to style and interact with links and URLs using powerful pseudo-classes for dynamic web experiences.

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.

Access this course and 1400+ top-rated courses and projects.