What is the difference between type 1 and type 2 diabetes?

There are three major types of diabetes: type 1, type 2, and gestational diabetes.