What is the difference between an HDD and SSD?

What is the difference between an HDD and SSD?