Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- /* unvisited link */
- a:link {
- color: blue;
- }
- /* visited link */
- a:visited {
- color: red;
- }
- /* mouse over link */
- a:hover {
- color: green;
- }
- /* selected link */
- a:active {
- color: orange;
- }
- </style>
- </head>
- <body>
- <p><b><a href="http://www.w3schools.com" target="_blank">This is a link</a></b></p>
- <p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p>
- <p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement