What is the ABO blood classification based on?

What is the ABO blood classification based on?