Meta Tags

The code for a basic meta tag:
<meta name="" content="">
or
<meta http-equiv="" content="">

Meta tags are in your head section of your html document.  The meta tags help the spiders index your page.  You can redirect a webpage with a meta tag, control spiders, prevent certain browsers to function differently with a code and even set your page’s language with it.

Here is a list of interesting meta tags you can observe and use:

Description Meta tag:

<meta name=”description” content=”put your page description here” />

This is what appears in the search engines as your description, usually right under your page title when listed in search results.

Keywords Meta tag:

<meta name=”keywords” content=”put your keywords here” />

This code will help you get listed under correct search results.  You should write keywords that best fits your website.  You should also spererate your keywords with a comma. You can use the below example as a resource.

<meta name=”keywords” content=”how to create a free website, get a free website, what is a keyword” />

Redirection code:

<meta http-equiv="refresh" content="2 ; url=anotherpage.html">

The above code is set to refresh the page and redirect it to anotherpage.html in 2 seconds.  You can change these fields according to your needs.

Cache Prevention code:

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

This code is useful when you update your pages a lot and you don’t want someone loading a page that has been cached on their system. It is supposed to keep a browser from caching your page. Some browsers will ignore the code and cache anyway.

Code to allow Index Follow for Search Engines (Google,Live ect.) :

<meta name="robots" content="index,follow">

This code will basically tell the robots to index whatever they find on your website.

Comments

One Response to “Meta Tags”
  1. Will says:

    This is some good information. I have heard it’s bad to use the meta redirect tho, it can hurt you.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!