META TAG COMPOSITION
What are meta tags?
The Meta tag in html is not a required tag when you're creating your web pages; many pages don't use the tag at all, and I must confess that I've not used it on my home page, although I put it into this page by way of expression. To put it briefly, the Meta tag is used by search engines to allow them to more precisely list your site in their directory.
If you merely create your home page and record the URL with a search engine, or a number of search engines, their spider programs will, in due course, walk along to your site to index it. Now, each of the search engines does this somewhat in a different way. Altavista for instance grabs everything in your text and index it, but will only show the first 250 characters in its description. Of course, not all search engines work this way; I'd suggest you to rather hunt around a little bit to see exactly how the popular search engines work, and certainly the major two or three.
The use of the Meta tag, however, enables you to put forth a certain amount of control over how your site is indexed.
What does a Meta tag look like? You should insert the Meta tag element at the top of your document, just after the <TITLE> element. It follows the usual form of tags, i.e.
<META name="ABC" content="XYZ">
but bare in mind that you don't have to have a </META> at the end of the tag, the way that you do with something like <h1> SEO </h1>. Nevertheless, make sure that each tag does not include any line breaks, since some search engines get a little bit bad tempered about this.
What can I include in a Meta tag? There are essentially four major Meta tags that you can use:
- <META name="resource-type" content="document">
- The only resource type that is currently in use is "document" This is the only tag that you need to put in for indexing purposes, but use of the others is a good idea.
- <META name="description" content="a description of your page">
- Depending on the search engine, this will be displayed along with the title of your page in an index. "content" could be a word, sentence or even paragraph to describe your page. Keep this reasonably short, concise and to the point. However, don't be so mean with your description that its not an appropriate reflection of the contents!
- <META name="keywords" content="a, list, of, keywords">
- Choose whatever keywords you think are appropriate, seperated by commas. Remember to include synoyms, americanisms and so on. So, if you had a page on cars, you might want to include keywords such as car, cars, vehicles, automobiles and so on.
- <META name="distribution" content="one of several">
- Content should contain either global, local or iu (for Internal Use). To be perfectly honest, I can't quite get my head around this one; its supposed to list available resources designed to allow the use to find things easily, but I still don't quite get it. My advice is to stick to "global".
Are there optional tags?
Yup, there's a whole bunch. Here are a couple of examples below:
- <META name="copyright" content="copyright statement"
- Pretty obvious what this one's for.
- <META HTTP-EQUIV="varname" content="data"
- This binds the varname to an HTTP header field. An http server might use this to process a document. This one's a tad more tricky.If you included the following example:
<META HTTP-EQUIV="keywords" content="car,cars"
then, as part of a GET command the server would include the word car and cars in the HTTP response header.
- <META HTTP-EQUIV="refresh" content="0; url=homepage.htm"
- This can be used in the HEAD section of the index.html file to redirect it to homepage.htm. The figure after content is the time in seconds that the browser waits before moving on.
There are a few others that you can include, such as "revisit-after" and "rating" if you want to be really all-inclusive.
Other useful points.
There is no need to index every single file that you've got on your site - just choose a few delegate samples.
The description tag should not simply repeat the title of the page, it should describe the page.
|