tumblr hit counter

HTML Meta Tags

Monday, October 14, 2013

HTML lets you 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 key words, 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.

Metadata provided by using meta tag is a very important part of the web. It can assist search engines in finding the best match when a user performs a search. Search engines will often look at any metadata attached to a page - especially keywords - and rank it higher than another page with less relevant metadata, or with no metadata at all.

Adding Meta Tags to Your Documents:
You can add metadata to your web pages by placing <meta> tags between the <head> and </head> tags. The 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 (as declared in the content attribute). 
http-equiv 
Used 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. 
NOTE: Core attributes for all the elements are discussed in next chapter.

Meta Tag Examples:
Let's see few important usage of Meta Tags.


Page >> 1 2 3 4 5 6 7 8 9 10 11 12 13 14

No comments:

Post a Comment

 

Click Here to Start Learning

Get Update!

Join Us Now !
Enter your email address:

Note: Don't forget to click the confirmation link (in your email) to verify Your Entry!

LEARN WEB DESIGN