The first thing you need to learn, is what factors are playing a role in SEO (A factor is something that plays a role under given circumstances). There are several factors, and they all receive different weight by the search engines. The search engines factor things differently. But as a rule, if you can get a search phrase to the top in Google, the other search engines will follow.
Therefore, our guide will concentrate on the big one – Google.