Is it possible to Redirect a Web Page in HTML?

Ask a question
3

I set up a basic HTML page and I want to redirect to another page. Is it possible? Please, help me to find a solution.

Coin iconoffer bounty
add comment

2 Answers

3

You can use the meta tag to redirect from an HTML page. Also, use the http-equiv attribute to provide an HTTP header for the value of the content attribute. The value in the content is the number of seconds; you want the page to redirect after.
For immediately loading you can set the content attribute to 0

<html>
   <head>
      <title>HTML Meta Tag</title>
      <meta http-equiv = "refresh" content = "2; url = https://www.tutorialspoint.com" />
   </head>
   <body>
      <p>Hello HTML5!</p>
   </body>
</html>
add comment
1

I suggest you to try the following

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

Also, please note, place it in the head section. Also, for older browsers ;

<p><a href="http://example.com/">Redirect</a></p>

will appear as Redirect, You will be allowed to go with an additional click.

add comment

Your Answer