Run and jump across a side-view world where gravity is the main enemy.
The platformer is the style most people picture when they hear "2D game". You see the world from the side, gravity never stops pulling, and the whole game lives in the space between where you jumped from and where you land.
Games like this: Super Mario Bros., Celeste, Hollow Knight.