button onclick style css code example Example: button click css style a:visited { color: purple; } a:active { color: blue; }