HTML can redirect webpage one location to another location. This needs to use Meta tag of HTML.
Meta tag can redirect HTML page with or without time interval. This interval can be of 0 second or more than 0 seconds. Browser automatically redirect to URL in the specified interval time.
This HTML redirection is client side execution and done by web browser.
In example, you will see how to use redirect code.
<meta http-equiv="refresh" content="3; URL=http://www.yahoo.com" />
This code will redirect after 3 seconds to yahoo webpage.
<meta http-equiv="refresh" content="0; URL=http://www.yahoo.com" />
This code will redirect immediately when it open on web browser.
We can give relative URL in URL property of content
<meta http-equiv="refresh" content="3; URL=goToPage.html" />
Full example code
<html> <head> <meta http-equiv="refresh" content="3; URL=http://www.yahoo.com" /> <title>HTML Redirect</title> </head> <body> Wait Redirecting .... </body> </html>



Link to Us