Menu

HTML TUTORIALS - HTML Meta Tags

HTML Meta Tags

ADVERTISEMENTS

Adding Meta Tags to Your Documents:

AttributeDescription
NameName for the property. Can be anything. Examples include, keywords, description, author, revised, generator etc.
contentSpecifies the property's value.
schemeSpecifies a scheme to use to interpret the property's value (as declared in the content attribute).
http-equivUsed for http response message headers. For example http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.

ADVERTISEMENTS

Specifying Keywords:


<head>
<meta name="keywords" content="HTML, meta tags, metadata" />
</head>

ADVERTISEMENTS

Document Description:


<head>
<meta name="description" content="Learn about Meta Tags." />
</head>

Document Revision date:


<head>
<meta name="revised" content=", 6/12/2006" />
</head>

Document Refreshing:


<head>
<meta http-equiv="refresh" content="10" />
</head>

Page Redirection:


<head>
<meta http-equiv="refresh" 
         content="10; url=http://htmltutorials.our24x7i.com/" />
</head>

Setting Cookies:


<head>
<meta http-equiv="cookie" content="userid=xyz;
         expires=Wednesday, 08-Aug-00 23:59:59 GMT; />
</head>

Setting Author Name:


<head>
<meta name="author" content="Mahnaz Mohtashim" />
</head>