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