Home / Archive / Dynamic copyright year using HTML
Duplicate Snippet

Embed Snippet on Your Site

Dynamic copyright year using HTML

Adjust the styling either inline or using css

Code Preview
html
<div id="copyright" class="box" style="align-content: baseline; font-size: 100%; font-size-adjust: 0.6; padding: 1em;">
	<center>
		<!-- Dynamic Copyright Year -->
			<p style="color: currentColor; background: transparent; font-size: 0.85em; font-family: 'Times New Roman', serif; letter-spacing: 0.01em; word-spacing: 0.1em; line-height: 2em;">
				Copyright © 
					<script>
						document.write(new Date().getFullYear());
					</script>
			</p>
	</center>
</div> <!-- end of copyright script -->

Comments

Add a Comment