Home
HTML
HTML Link Colors
Example 5: HTML Link Colors
Run ❯❯
<!DOCTYPE html> <html> <head> <title>Change Unvisited, Visited, Active & Hover Link Color Example</title> <style> a:link { color: brown; text-decoration: none;} a:visited { color: orange; text-decoration: none;} a:hover { color: green; text-decoration: underline;} a:active { color: violet; text-decoration: underline;} </style> </head> <body> <h1>Internal CSS to Change Link Color</h1> <p>Below is a link whose default color is changed using internal CSS.</p> <a href="html-tutorial">HTML Tutorial</a> </body> </html>