Tuesday 3 April 2007

Optimise your site with NOODP and NOYDIR metatags

Yahoo has just announced that it supports a new metatag, and it is a good idea to use it! When someone searches on Yahoo or Google, and a page on your site appears in the search results, the description that is displayed for your page may not be what you have coded for that page.

First, some very fundamental rules of website development:

1 – Every page of your website should have a description and a title. That’s not the heading that web visitors see on the page itself, but text that you insert within the title tag and the description metatag in the HTML code of each page. A lot of sites do not have these titles and descriptions, because the developer did not bother to insert them, or, if they exist, they are hastily created poor marketing copy. You can see these tags by opening each page in your browser and clicking View then PageSource, or Page then View Source, depending on your browser. Check yours today!

2 – Before you submit a new site to Google or Yahoo, you have to submit it to the major directories DMOZ and Yahoo Directory. The people who edit these directories make decisions about the classification of your site which Google and Yahoo and most other search engines build into their own review algorithms.

Now, back to the NOODP and NOYDIR metatags.

Your site’s descriptions may not be what you see in search engine results pages because Yahoo and Google spiders often defer to the descriptions that have been written by the human editors of those primary source directories, particularly DMOZ (the Open Directory Project) in the case of Google, and the Yahoo Directory in the case of Yahoo.

The discrepancy between what you think should be in the description and what actually appears may be because you have edited your page description subsequent to submitting it to one of the directories, or because the editors of the directory decided that they could produce a more accurate description, or – most likely – because at the time you submitted your page you did not have a description in place.

Now you can get around this problem by including a line of code on each page which tells the search engines to ignore the tags that the directories have, and override them with what your page code has in place.

The "NOODP" metatag is already supported by all major search engines, and it tells them to ignore the ODP (Open Directory Project, or DMOZ) tags. The new Yahoo “NOYDIR” metatag tells the Yahoo search engine to ignore the YDIR (or Yahoo Directory) metatags. To invoke these two overrides, simply add the following code between to the HEAD and /HEAD text of your web page code:

meta name="ROBOTS" content="NOODP, NOYDIR"
remembering to enclose the line between angle brackets<>

The only impact this will have will be to ensure that the descriptions and titles within your site code are displayed in search results rather than those logged in the directories. But it puts you in control of how your site is described!

No comments: