Black hat seo:-Black hat SEO is a practice against search engine guidelines, used to get a site ranking higher in search results. These unethical tactics don't solve for the searcher and often end in a penalty from search engines. Black hat techniques include keyword stuffing, cloaking, and using private link networks.
white hat seo :-White hat SEO is the body of approved search engine optimization tactics designed to increase a website's position on a search engine results page (SERP). Search engine results that appear as a result of approved methods, rather than payment or trickery, are referred to as organic search results.
gray hat seo:-In the words of SEO Consultant John Andrews, Gray Hat SEO is not something between Black Hat and White Hat, but rather βthe practice of tactics/techniques which remain ill-defined by published material coming out of Google,