Auto redirect URL with meta tag HTML

In this tip, we will learn about how to redirect from page A to page B by meta tag in HTML.
With this way, you also allow to display page A for a certain time before auto redirect it to page B.

Add a meta tag before the tag like this:

<html>
<head>
<meta http-equiv="refresh" content="30;url=http://www.4codev.com/">
</head>
<body>
...
</body>
</html>

Copy this code


In this example, we redirect current page to "www.4codev.com", after 30 seconds.