How do life jackets or inflateable rafts keep you afloat?

Life jackets or rafts are filled with air and operate with the principle of buoyancy. In effect, because of the pressure difference between the fluid from below and the pressure exerted from above, the raft or jacket floats.