There are excellent resources on the internet, and several books have been written about the subject as well. The more you know, the better you will do.
Use your incoming links carefully. Search engines will actually look at who is linking to your site regularly, and if they are a quality website themselves.