Why are sunspots black?

sunspots apear to be black that mean they are cooler spots on the sun