Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Tuesday, April 10, 2007

Advantages of HTML < meta > tag with Examples

There are two reasons to use meta tags:

1. Search Engine Optimization (SEO)
2. Browser Behavior

- Search Engine Optimization -
The Meta tag is a very usefull tag for webmaster who want to customize their website listings on search engines. Meta tags can also help improve placement (or ranking) of your web pages in search egines like google. But not all search engines use meta tags, some very old search engines lack the technology or features to use meta tags, a good example is lycos.
So if you want to improve your website ranking, using meta tags, can be very useful and advantageous. so take advantages of this HTML tag.

- Browser Behavior -
Browser Meta Tags define particular things about a web page, for example, what character set to use when displaying the characters on the page, or what language the html document is written it, or how many long should be waited before refreshing the page or redirecting to another webpage. Here are some meat tags examples to use with different meta tags.

Setting the page's language
<meta http-equiv="Content-Language"

Setting the page's character set
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">

Meta Refresh - Refreshing the page after 10 seconds
<meta http-equiv="Refresh" content="10">

Meta Redirect - Redirecting the page to after 10 seconds
<meta http-equiv="Refresh" content="10;

Meta Cache - Instruct the browser not to cache the page
<meta http-equiv="pragma" CONTENT="no-cache">

other sources

Post a Comment