Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p> <a href="../html/default.html">HTML</a><br> <a href="../css/default.html">CSS</a> </p> <p>Click the button to add a red border to the first link in the document.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { document.links[0].style.border = "5px solid red"; } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_doc_links6 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:10:59 GMT --> </html>
Result:
Try it Yourself - © w3schools.com