Meta tags are lines of code and are located in the “head” section of your web page. These lines of code, even though they are not displayed by your browser, are very useful when providing additional descriptive information about your web page. There are a number of different Meta tags used in your web pages, some more important than others.
Meta tags, or a element (both are the same), must contain what is called an attribute, and have some kind of value following it. A required attribute is content, and it defines the Meta information that goes with the attributes, http-equiv and name.
The http-equiv attribute has values like “content-type, expires, refresh, and set-cookie.” One example of an http-equiv attribute is if you have moved your web page to a new URL. You want to let your customers know the page has moved and, after a predetermined time, they will be automatically redirected to the new URL.
Example:
In the above example, your web page will refresh causing your user’s browser to refresh the current URL. Displayed is the short message you have placed on this page notifying your users the current page has moved and they will be redirected to the new page. In the above example, after 5 seconds the user will automatically be redirected to the new web page at http://www.yournewpage.com.
The name attribute has values such as, “author, description, keywords, generator, revised”, to name a few, and is the one most commonly used. For example, this attribute is the one you use when creating the description for your web page,
In the above example, we used the name attribute, and its value is description. We also used the required attribute, content. The content attribute defines what the Meta information is that goes with the value, description.
» Posted in Search Engine Optimizing » 290 views