When magnesium ribbon is placed in hydrochloric acid, hydrogen gas is produced causing the mixture to bubble.
Mg (s) + 2HCl (aq) → MgCl2 (aq) + H2 (g)
If they hydrogen gas is collected, it can be ignited to demonstrate the potential safety concerns of an evolved gas.
H2 (g) + O2 (g) → H2O (g)