Wednesday, 8 August 2012

HTML Meta Tags


HTML lets tou specify metadata – information about a document rather than document content – in a variety of ways. The META element can be used to include name/value pairs describing properties of the HTML document, such as author, Expiry Date, a list of Keywords, author etc.
The <meta> tag is an empty element and so does not have a closing tag, rather, <meta> tags carry information within attributes, so you need a forward slash character at the end of the element.

Adding Meta Tags to Your Documents:
You can add metadata to your web pages by placing <meta> tags between the <head> and </head> tags. They can include  the following attributes.
Attribute
Description
Name
Name for the property. Can be anything. Examples include, keywords, description, author, revised, generator etc.
Content
Specifies the property’s value.
Scheme
Specifies a scheme to use to interpret the property’s value.
http-equiv
Used for http response message headers. Fro example http-equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.

No comments:

Post a Comment