Edit This Code:
See Result »
<!DOCTYPE html> <html> <head> <style> a.ex1:hover, a.ex1:active {color: red;} a.ex2:hover, a.ex2:active {font-size: 150%;} a.ex3:hover, a.ex3:active {background: red;} a.ex4:hover, a.ex4:active {font-family: monospace;} a.ex5:visited, a.ex5:link {text-decoration: none;} a.ex5:hover, a.ex5:active {text-decoration: underline;} </style> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?73c27e26f610eb3c9f3feb0c75b03925"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </head> <body> <p>Mouse over the links to see them change layout.</p> <p><a class="ex1" href="default.html">This link changes color</a></p> <p><a class="ex2" href="default.html">This link changes font-size</a></p> <p><a class="ex3" href="default.html">This link changes background-color</a></p> <p><a class="ex4" href="default.html">This link changes font-family</a></p> <p><a class="ex5" href="default.html">This link changes text-decoration</a></p> </body> </html>
Result: