1<body> 2 <span id="current-year"></span> 3</body> 4<script> 5 // Set current year 6 const yearEl = document.getElementById('current-year'); 7 if (yearEl) yearEl.textContent = new Date().getFullYear(); 8</script>