Refresh (or) Reload Web Page using Meta Tag

You can refresh (or) reload HTML web page using meta tag without script tag as given below.

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

The above code will reload the same page in 5 seconds.

To reload the page immediately you should set content="0".

Redirect to Specific URL

To redirect the page to different URL you should follow the code as given below.

<meta http-equiv="refresh" content="5;url=http://www.yourwebsite.com">

Note:

  • Meta tag is always placed inside the <head> tag.
  • Meta tag provides information about contents in the html page.

Comments

Popular posts from this blog

About 12 Alwars

Post thumbnails from external URLs don’t appear in Blogger. How to resolve?