Refreshing page content using the Meta tag

This tags has the same effect as refreshing your browser´s refresh button. You will also se how the code to force the browser to load another document

  • In the head section of your document enter the meta tag. Add the http-equiv attribute and equal it to refresh. Write the content value and set it to the number of seconds you want the page to remain static before refreshing

Example:
------------------------------------
<head><title></title>
<meta name="keywords" content="Ray´s Guide to HTML, Guide, HTML, Hypertext Markup Language, HTML Tutorial" />
<meta name="descrition" content="Ray´s Guide to HTML - An introductory guide for the beginner" />
<meta name="author" content="yourname">
<meta name="expires" content="wed, 15 June 2011 02:00:00:00 GTM" />

<meta http-equiv="refresh" content="5" />

</head>

------------------------------------
Don´t forget the forward slash at the end of meta tag


Note use the http-equiv instead of name when the action is being taken retrieves data using the Hypertext Transport Protocol (http;//)
  • To force the browser to lead another document after the refresh time elapse follow the refresh rate value with a semicolon and enter url="path_name", where path_name equals the file path to a document on your Web server or complete URL to another document on the web.

Example:
------------------------------------
<head><title></title>
<meta name="keywords" content="Ray´s Guide to HTML, Guide, HTML, Hypertext Markup Language, HTML Tutorial" />
<meta name="descrition" content="Ray´s Guide to HTML - An introductory guide for the beginner" />
<meta name="author" content="yourname">
<meta name="expires" content="wed, 15 June 2011 02:00:00:00 GTM" />

<meta http-equiv="refresh" content="5"; url="path_name" />
</head>

------------------------------------
Don´t forget the forward slash at the end of meta tag