-
Step 1
Description and Keywords
Of the many meta tags that can be included, writing a description of your web page and adding good keywords are probably the most important ones of all. These are designed specifically to tell search engines what the page is about, where it should be indexed, and what types of searches should look for your website.
To add a description, simply type the following in your website head codes, within opening and closing HTML brackets (click photo next to Step 1 to see how it should look):
meta name="description" content="Type your description here, such as: Article about how to write meta tags."
To add keywords, do the same as above, but change "description" to "keywords," like so:
meta name="keywords" content="article,meta tags,html,web design"
Note that your keywords in the meta tags should be separated by a comma. Read article in Resources below about how to write better keywords. -
Step 2
Author and Copyright
If you'd like others to know who designed the website, as well as who owns the copyright, a great way to do this is through meta tags. In addition to adding the information in the footer area of the website itself, you can also place it within your head codes. See the following examples.
meta name="author" content="Your Name"
(and)
meta name="copyright" content="Copyright © YEAR Your Name" -
Step 3
Refresh Page and Don't Cache
So far, the codes used in this article have only been to talk with search engines, but there are times when you'll want to direct the hypertext markup language (HTML) to the web server or proxy. For instance, if you want to have the page to automatically refresh, you can put this code in your header:
meta http-equiv="Refresh" content="0;URL=http://www.your-new-website.com/"
Adding "http-equiv" is the call to your web server or proxy. Refresh tells the server to refresh the page, and the information within content tells it when (0 stands for zero seconds; change to your preference) and where to go next. This code is particularly good for those times when you move a page. Rather than leaving a link behind for others to click, you can simply use this code to automatically send them to your new page.
Another server code is directed to browsers. Whether you want a browser to cache your page or not, it's up to you with this code:
meta http-equiv="pragma" content="nocache"
A warning about using the nocache code: Caching helps your website to load faster, so use this code with caution. It can slow things down for your visitors, and if it's too slow, they might not want to come back. -
Step 4
Indexing and Following
Whether you're aware of it or not, search engines send "bots" to your page for indexing. You can tell the robots what to do and how to index your website by using your choice of the below codes. Follow and nofollow simply means that you either want the bots to also index the links found on the page or not. Index means you want the search engines to index your page; noindex means you don't.
meta name="robots" content="all"
meta name="robots" content="index,nofollow"
meta name="robots" content="noindex,follow"
meta name="robots" content="none" -
Step 5
These are only a few basic meta tags that can be used in HTML. As mentioned, there are many more out there, but these are certain to get you started in the right direction. (Click Step 5 image to see how all of the meta tags look together.)













Comments
blonde-doc said
on 11/4/2009 Fabulous article on writing meta tags - saving this to my favs.
carolzn said
on 10/28/2009 Very informative article on meta tags. Thanks. 5* and recommended.