The bubbles and foam you see are filled with carbon dioxide gas (CO2) that's being released by an acid/base
reaction.
Vinegar is acetic acid dissolved in water and
baking soda is a base called
sodium bicarbonate. Initially, the
reaction makes carbonic acid which is unstable. It quickly breaks down into CO2 and water.
read more >>