Carbonates react with dilute hydrochloric acid to produce carbon dioxide gas. This gas can be identified by its bubbles and by its reaction with limewater, which turns milky due to the formation of calcium carbonate.
The reaction between carbonate and hydrochloric acid can be represented as follows:
```
CaCO3 + 2HCl → CaCl2 + H2O + CO2
```