| You are here: | About>Computing & Technology>Web Design / HTML> About.com Web Design A to Z> Books> About Web Design Book> AWD: Chapter 10> Meta Refresh Tag |
![]() | Web Design / HTML |
More Meta TagsMore Meta TagsMeta Refresh TagRedirecting Your CustomersOne of the most common uses of the meta tag is to reload and redirect Web pages. This tag is easy to use and misuse. The Meta Refresh TagThe meta tag belongs within the <head> of your HTML document. When used
to refresh the current page, the syntax looks like this: <meta http-equiv="refresh" content="600"> metaThis is the actual HTML tag. It belongs in the <head> of your HTML document. You can learn more about the meta tag in my tag library. http-equiv="refresh"This attribute tells the browser that this meta tag is sending an HTTP command rather than a standard meta tag. Refresh is an actual HTTP header used by the Web server. It tells the server that the page is going to be reloaded or sent somewhere else. content="600"This is the amount of time, in seconds, until the browser should reload the current page. Some of the more common uses of the reload version of the refresh tag is to reload a page that has dynamic content on it. For example: a stock ticker or weather map. Some people also use them to reload ads, but that can annoy your readers. Redirecting to a New PageWhile the reload option is useful, it is usually not what people want from the meta refresh tag. To redirect to a new page, the syntax is nearly the same: <meta http-equiv="refresh" content="2;url=http://webdesign.about.com"> The only difference is in the content attribute. content="2;url=http://webdesign.about.com"The number is the time, in seconds, until the page should be redirected. Then, separated by a semi-colon (;) is the URL that should be loaded. Keep In MindMeta refresh tags have some drawbacks:
More Meta TagsMore Meta Tags |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


