Deepika
Deepika

Reputation: 474

Meta tags usages in HTML header

There are so many meta tags used while creating a website, can anyone explain why they're required and their usage?

Upvotes: 1

Views: 541

Answers (3)

JiminP
JiminP

Reputation: 2142

W3Schools or other HTML reference sites are your best friends when you're making a HTML homepage! :D http://www.w3schools.com/tags/tag_meta.asp Meta tag is used to indicate the 'metadata' of a website, such as encoding, site keywords and descriptions (which is used by search engine), author of website, or the language used. If you're lazy, then you may only add about encoding, such as <meta charset='utf-8'/>

EDIT : Sorry.. I didn't know about that...

Upvotes: 0

Chris Fulstow
Chris Fulstow

Reputation: 41902

Meta tags are HTML <meta> elements that provide metadata about your page. The most common ones are used to specify the page's description and keywords that decribe its content. Both of these can be used by search engines to help index your page, although description has become more important than keywords.

<meta name="description" content="My page about awesome animals" />
<meta name="keywords" content="unicorns, dugongs, marmosets" />

Another other use for meta tags is to emulate the behaviour of an HTTP response header, for example to set a page's caching policy:

<meta http-equiv="pragma" content="no-cache" />

The HTML spec doesn't define a standard set of properties for meta tags, but there's a set of de facto tags that are generally accepted and implemented by browsers. Some of the most common ones are listed here - Useful HTML Meta Tags - with example usages.

Upvotes: 4

Rich Bradshaw
Rich Bradshaw

Reputation: 73045

The ones you want to use are title (not really a meta tag) and description. Keywords is obsolete these days.

Here's a list of some popular ones: http://www.metatags.org/all_metatags

Many of those are useless though, and have no support such as copyright and web_author.

Upvotes: 1

Related Questions