Both prepositions have a multitude of uses and meanings, but for the basic physical meaning, 'in' refers to 3-dimensional locations while 'on' refers to 2-dimensional ones.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.