How to auto refresh code in HTML using meta tags?

Spread the love

To auto refresh code in HTML using meta tags, we add a meta tag with http-equiv attribute set to refresh.

For instance, we write

<html>
  <head>
    <title>HTML in 10 Simple Steps or Less</title>
    <meta http-equiv="refresh" content="5" />
    <!--  -->
  </head>
  <body></body>
</html>

to add a meta element with http-equiv attribute set to refresh. and content attribute set to 5 to refresh the page every 5 minutes.

Leave a Reply

Your email address will not be published. Required fields are marked *