Link Colors and States
Browsers style links with default colours: blue for unvisited, purple for visited, and red while active (being clicked). These defaults can be overridden with CSS using the :link, :visited, :hover, and :active pseudo-classes.
Styling Links with CSS
The order of pseudo-classes matters — remember the mnemonic LoVe HAte: :link, :visited, :hover, :active. Defining them in any other order can cause styles to be overridden unexpectedly. You can also remove the underline with text-decoration: none, but ensure links remain visually distinguishable from regular text.