There are two main types of SEO: on-page SEO which involves optimizing elements directly on the website like meta tags, headings, URLs and responsiveness, and off-page SEO which focuses on external activities like publishing content, comments and backlinks from other high-quality sites to drive traffic.