Most important is getting your site listed in the top 5 or top 10 in the major search engines and achieving that is not an easy task. There are a number of factors which determine your position such as
Your Title (and the word count in it)
Your Description (Google ignores this)
If your keyword is included in and closer to the begining of your Title
If your keywords are in your content
If you have got any keywors bolded in your content
If your Alt tags in your links reference your keywords
If you have not tried to fool the search engine by placing similar colored text in similar colored tables to make it appear hidden
The page you index needs to have certain amount of words in it..
Not to mention link popularity (how many sites link to you etc.)
Then your choice of keywords is important knowing exactly what your users would type to find what you have on your site is important.
You need to read up on SEO and there are tools out there that will help you achieve that such as Web Position Gold found here http://www.web-positiongold.com/
On the more funny side another such way you get instant traffic maybe for a day is do what you did? Post a question about it in a forum.. :trout: