SEO is both a science and an art. Focusing on writing quality content while sticking to a few guidelines on tags and URLs is the best way to ensure results.
Remember, you want search engines to rank you highly for your content, but you also want to ensure the content is a pleasure to read.