Cotton candy was invented by a dentist, and it gained popularity at the 1904 World's Fair in St. Louis.