The precipitates are a result of using silver nitrate to test for halogen ions. The colour of the precipitate depends on the halogen present, chloride is white, bromide pale cream and iodide pale yellow.