<html>
<body>
<h1>The Document Object</h1>
<h2>The links Property</h2>
<p><a href="/html/default.asp">HTML Tutorial</a></p>
<p><a href="/css/default.asp">CSS Tutorial</a></p>
<p>The URL of the first link in the document is:</p>
<p id="demo"></p>
<script>
let url = document.links[0].href;
document.getElementById("demo").innerHTML = url;
</script>
</body>
</html>