set current year in html 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>