How is the HAVING clause different from the WHERE clause?

How is the HAVING clause different from the WHERE clause?