To a test solid or solution, dilute hydrochloric acid or dilute nitric acid is added.
If effervescence is observed and a colourless gas is evolved which turns lime water milky, then the substance contains a:
SO4²⁻.
CO3²⁻ or HCO3⁻.
NO3⁻.
SO3²⁻.