Halide compounds such as NaCl, NaBr, and NaI can be tested with silver nitrate solution, AgNO3 . The halogen will react with Ag+ and form a precipitate, with varying colour depending on the halogen:
AgCl: White
AgBr: Creamy (Pale Yellow)
AgI: Yellow
