css change link color after click code example Example: link changes color after being clicked a:link, a:visited { color: red; }