Wednesday, February 27, 2008

HTML Meta tag

Generally one would think that what is this meta tag in a HTML form??

Here is the answer,

Meta tag in HTML is generally used for three of the following.

  1. Document description

Information inside a meta element describes the document.

  1. Document keywords

Information inside a meta element describes the document's keywords. Which keywords are used by search engine to get information about web pages.

  1. Redirect a user

This example demonstrates how to redirect a user if your site address has changed.

Here is the example for the same

<html>

<head>

<meta http-equiv="Refresh"

content="5;url=http://www.w3schools.com">

</head>

<body>

<p>

Sorry! We have moved! The new URL is: <a href="http://www.w3schools.com">http://www.w3schools.com</a>

</p>

<p>

You will be redirected to the new address in five seconds.

</p>

<p>

If you see this message for more than 5 seconds, please click on the link above!

</p>

</body>

</html>

Courtesy By : www.w3schools.com