Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

How to make a HTML link that forces refresh ?

  • Difficulty Level : Easy
  • Last Updated : 23 Apr, 2021

In this article, we will learn to make an HTML link that forces refresh. HTML <meta> http-equiv attribute with refresh value specified in meta element is used to refresh website pages.

Refresh instruction specifies time interval for the page to reload itself, with its value mentioned in content attribute as a positive integer. Positive integer is the number of seconds after which the page will refresh itself. 

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.


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


<!DOCTYPE html>
    <meta http-equiv="refresh" content="5" />
    <h2 style="color: green">
     Welcome To GFG
     This page automatically refreshes 
     after every 5 seconds


My Personal Notes arrow_drop_up
Recommended Articles
Page :