This should help. Copied from article linked below.
P (program) mode keeps the shutter speed between 1/60 sec and the maximum flash sync speed your camera can handle. It does this so that you shouldn’t need a tripod, even if light levels are low. It then tries to illuminate the foreground using flash.
Av (aperture priority) and Tv (shutter speed priority) modes set the shutter speed or aperture to expose for the existing light conditions correctly. They then fill in the foreground using flash. If light levels are low you will need a tripod to avoid blur.
M (manual exposure) mode lets you set both aperture and shutter speed to be whatever you want. The camera then automatically controls the illumination of the foreground subject using flash.
I reccomend that you take a look at
whole article here, as Canon refuses to make it easy to understand from start.
Tomas