Muscles worked: ab anatomy
The rectus abdominis is the six-pack muscle. It bends the torso, bringing the ribcage toward the pelvis as in crunches, or the pelvis toward the ribcage as in leg raises. The obliques sit on the sides: they rotate and bend the torso and stop it from twisting under load. The transverse abdominis lies deepest and works like a natural belt that stabilises your trunk.
A good ab session includes both movements that bend the torso and exercises where the job is to keep your trunk still under load.