Specifying Keywords:
We specify keywords which will
be used by the search engine to search a web page. So using following tag you
can specify important keywords related to your page.
<head>
<meta name=”keywords” content=”HTML,
meta tags, metadata” />
</head>
Document Description:
This is again important
information and many search engine use this information as well while searching
a web page. So you should give an appropriate description of the page.
<head>
<meta name=”description”
content=”Learn about Meta Tags.” />
</head>
Document Revision date:
This information tells about
last time was updated.
<head>
<meta name=”revised”
content=”HTMLLearning, 6/7/2012” />
</head>
Document Refreshing:
You can specify a duration after which your web page will
keep refreshing. If you want your page keep refreshing after every 10 seconds
then use the following syntax.
<head>
<meta http-equiv=”refresh”
content=”10” />
</head>
Page Redirection:
You can specify a page
redirection using Meta Tag. Following is an example of redirecting current page
to another page. You can specify a duration after which page will be
redirected.
<head>
<meta http-equiv=”refresh”
content=”10; url=http://codearms.blogspot.com”/>
</head>
Setting Cookies:
You can use Meta Tag to store
cookies on client side later information can be used by then Web Server to
track a site visitor.
<head>
<meta http-equiv=”cookie”
content=”userid=xyz;
Expires=Wednesday, 08-Aug-2012 23:59:59 GMT;” />
</head>
If you do not include the
expirtion date and time, the cookie is considered a session cookie and will be
deleted when the user exits the browser.
Setting Author name :
You can set an author name in a
web page using Meta Tag.
<head>
<meta name=”author”
content=”Codearmster”>
</head>
No comments:
Post a Comment