White hat SEO is ethical and legal SEO practices that follow search engine guidelines and best practices, including website content creation, building quality backlinks and offering positive user experience. Black hat SEO uses unethical methods to trick search engines into ranking a website higher. Keyword stuffing, cloaking, and buying links are some examples.