There's a lot of basics in search engine optimization, but I'll keep it simple. Focus on creating unique and quality content for your websites, research keywords that generate lot's of traffic for your niche in search engines like Google, Bing...etc, and use those keywords in your content without spamming. Quality is the key.