Two techniques
1 white hat seo - the technique approved by google in which we used relevant content,
2. Black hat seo- the technique not approved by google this is also called as spamming
other one is Grey hat seo technique combination of both white amnd black seo
.