Testing for halides - add dilute nitric acid then silver nitrate:
add dilute nitric acid to solution. removes carbonate ions that could disrupt test results by forming a precipitate with the silver ions added later
add silver nitrate to the same solution. if halides are present, they will form a precipitate with the silver ions
Ag(+)(aq) + Br(-)(aq) -> AgBr(s) (silver bromide is cream)
Ag(+)(aq) + Cl(-)(aq) -> AgCl (silver chloride is white)
Ag(+)(aq) + I(-)(aq) -> AgI(s) (silver iodide is pale yellow)