Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML

Print Version

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, along with the 'http-equiv' and 'content' attributes.

Redirect code

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

<meta http-equiv="Refresh" content="5; url=http://www.quackit.com/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.

Enjoy this website?

  • Share
  • Add this page to your Favorites
  • Link to this page (copy/paste into your own website or blog):
  • Link to Quackit using one of these banner ads.
  • Help support Quackit by making a donation

Oh, and thank you for supporting Quackit!

© Copyright 2000 - 2010 Quackit.com