Home / CSS Tips Generated By ChatGPT / Styling Links in CSS Style links differently depending on their state: :link, :visited, :hover, :active. Source Code a:link { color: green; } a:visited { color: gray; } a:hover { color: red; } a:active { color: yellow; }