Quackit Logo

HTML Redirect

You may occasionally find yourself in the position where you have to create an "HTML redirect". This is a client-side redirection and tells the browser to request another page.

To create an HTML redirect page, you use the HTML meta tag with the http-equiv and content attributes.

Redirect code

To create an HTML redirect, place the following code between the head tags.

<meta http-equiv="Refresh" content="5; url=/html/tags.cfm">

In the above example, the page will redirect to the specified page in 5 seconds (as indicated in the content attribute.

You can also use JavaScript to redirect to another web page. See JavaScript Redirect.

Have you checked out the HTML Tutorial?

Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!