White hat vs black hat

What is the deference between white hat & black hat SEO? How can its work?