<span id="date-year"> <script> document.getElementById('date-year').appendChild(document.createTextNode(new Date().getFullYear())) </script> </span>