In Markup, links are portals. Some have never been opened. Some have already been visited. Some glow when hovered, focused, or pressed. Pseudo-classes let CSS detect those moments.
Selector Map
a:link - Finds links that have not been visited.
a:visited - Finds links the browser recognizes as visited.
a:focus - Finds a link selected by keyboard or click focus.
a:hover - Finds a link while the pointer is over it.
a:active - Finds a link while it is being activated.
Mission
-
In the
a:link rule, type color and text-decoration
. Choose how unvisited links should look before anyone opens them. -
In the
a:visited rule, type color
. Choose a different color for links the browser recognizes as visited. -
In the
a:focus rule, type outline and background
. Make keyboard focus easy to see when a link is selected. -
In the
a:hover rule, type color and text-decoration
. Make the link visibly respond when the pointer is over it. -
In the
a:active rule, type color
. Choose a color for the moment the link is being pressed or activated.
Find this selector block in the CSS panel and complete the missing declarations.
Help Links