meta tag refresh code example

Example 1: html meta refresh

<meta http-equiv="refresh" content="3; URL=http://www.example.com/">

Example 2: meta refresh

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

Example 3: meta refresh

Place inside the <head> element to :

refresh page after 5 seconds:

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

Redirect to https://yourdomain.com/ after 5 seconds:

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

Redirect to https://yourdomain.com/ immediately:

<meta http-equiv="refresh" content="0; url=https://yourdomain.com/">

Example 4: reload tab using meta

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

Tags:

Html Example