<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], Mon, 27 Jan 2020 03:02:16 GMT -->
</html>