How to refresh the HTML Webpage every few seconds automatically using Meta tags?

There may be a scenario where the developer might want to auto refresh the HTML webpage every few seconds automatically.

To auto refresh code in html, one can add the metatag with the http-equip=”refresh” and content attribute. The tag http-equiv should be set to “refresh”, the content attribute of the meta tag should be set to the time limit for refresh.

How to refresh the HTML Webpage every few seconds automatically using Meta tags?

Below is a code snippet which can be used to auto refresh the page every few seconds (5 seconds in the below example).

<meta http-equiv="refresh" content="5" >
%d