set the year in html tag using javascript code example
Example: javascript code for year in html
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>