<head> <link rel="stylesheet" href="/css/style.css"> </head> <h1>Single Page App</h1> <h2>Location: <span></span></h2> <script> document.querySelector('h2 span').textContent = window.location.pathname </script>