Beginning Web Developer Course: Basic Search Engine Optimization
We're not going to discuss "secret" optimization tricks of the kind often sold in ebooks for incredible amounts of money, because most of those end up being detected and worked around by the likes of Google, Yahoo, and Bing. The really good techniques are the ones which are organic, or work in a natural way, because they aren't tricks at all, and become more powerful over time. These two approaches are sometimes known as "Black Hat" and "White Hat" techniques. Black Hat SEO isn't black magic or anything that will sully your soul; it's just more likely to get you into trouble with Google, and getting tossed out of Google is not my idea of a good day. For a quick overview of Black Hat techniques (in terms of what not to do), the Wikipedia article on "spamdexing" is a good start.
But even White Hat approaches can get you into trouble. In a number of landmark court cases, defendants were found to be guilty of trademark infringement for simply using their competitor's trademarked product names in a META tag. So let's be careful out there, while learning the basics.
SEO 101So what are these mysterious META tags? They're simply HTML extensions that appear in the <HEAD> area of your HTML source code. Here are the (strictly White Hat!) tags ripped straight from the Webmaster Tips section page:
<META NAME="description" CONTENT="If you're a web developer or webmaster, this section is for you. With web development articles, tutorials, tips and tricks that you can use, HTMLGoodies will keep you informed!"> <META NAME="keywords" CONTENT="web development, webmaster, web design, tips and tricks, HTMLGoodies, HTML">The Description tag contains a brief description of what's on the page. Write it well, and write it carefully, because this is exactly what a search engine will display when your page is found, and you want it to appeal very strongly to your target audience. Leave it out, and you're showing the world that you just don't care what people see when they find your site. You will now be able to spot careless webmasters easily, because when you Google their sites, they show up with whatever happens to be at the top of the page...maybe content (usually the wrong content), and maybe their fancy hierarchical menu!
The Keywords tag, obviously, is intended to contain your keywords and keyword phrases, separated by commas. A reasonable number of carefully-selected keywords, as illustrated here, is far better than blindly putting in every word you can think of that someone might type into a search engine to find your page. That was the prevailing "clever" technique five or ten years ago, but it doesn't work today. It can also lead to trouble...some with the search engines, and some with courts, as we mentioned above.
Good practice when working with these META tags is simply to take the time to use them. While it's true that META tags don't have the importance that they did ten years ago (and some search engines claim to ignore them completely), it's also true that they're so simple, many people simply ignore them, so that every page on their site will show up virtually identically in search engine results. Someone like you will then come along, carefully tune META tags for each of their pages, and suddenly you're not only showing up higher in the results, but with many different results all pointing to your site.