Is it possible to Redirect a Web Page in HTML?

Ask a question

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


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

      <title>HTML Meta Tag</title>
      <meta http-equiv = "refresh" content = "2; url =" />
      <p>Hello HTML5!</p>
add comment

I suggest you to try the following

<meta http-equiv="refresh" content="0; url=" />

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

<p><a href="">Redirect</a></p>

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

add comment

Your Answer