How to Automatically Update The Copyright Year of your Website
Updating the copyright year one by one on the HTML pages of your website is quite boring and time-consuming for everyone. It is now easy to update the copyright year in the Copyright Notice in the footer section of your webpage very easily and automatically with just a simple code.
SEO Benefits of Copyright Notice
Each website has a copyright notice under its content, especially in the footer section. It is good for SEO. The updated year refers to the freshness of the content, while the old year refers to the outdated content, which is not good for the SEO of your website. SO always try to update the copyright year of your website every year on all pages.
Use this code in your web pages to auto-update the copyright year every year.
For Simple Copyright Notice
<p>Copyright © <script>document.write(new Date().getFullYear())</script> Your Website Name | All Rights Reserved.</p>
For Year Range
<p>Copyright © 2018-<script>document.write(new Date().getFullYear())</script> Your Website Name | All Rights Reserved.</p>
Centering the Copyright Notice
<center>Copyright © 2018-<script>document.write(new Date().getFullYear())</script> Your Website Name | All Rights Reserved.</center>