There are three types of techniques in SEO.
1. Black Hat SEO - It is the technique which we use to get the high traffic and achieve ranking in search engine by going against the google guidelines.
2. White Hat SEO - It is the technique, in which we work according to Google Guidelines to achieve the ranking and high traffic from search engine.
3. Grey Hat SEO - This technique is the combination of White Hat and Black Hat SEO.