Sodium chloride (NaCl) and silver nitrate (AgNO3) are both solids that are highly soluble in water. They give a double displacement reaction where the ions switch places and give sodium nitrate (NaNO3) and silver chloride (AgCl) as the products. Silver nitrate is also very soluble in water, but silver chloride is highly insoluble in water and will precipitate out of solution as a white solid. The balanced chemical equation is written below.
NaCl (aq) + AgNO3 (aq) --> AgCl (s) + NaNO3 (aq)
So two colorless solutions will give a milky white suspension when mixed.
AgNO3(aq) + NaCl(aq) ---> AgCl(s) + NaNO3(aq)
AgCl precipitated out of solution because it's insoluble in water. We first write the complete ionic equation before we write the net ionic equation. To write the ionic equation, we separate all the aqueous compounds into ions and leave the solid compound unseparated.
Ag+ + NO3- + Na+ + Cl- ---> AgCl(s) + Na+ + NO3-
Then, we omit the spectator ions- the ions that appear on both sides of the equation. We're left now with the net ionic equation
Ag+ + Cl- ---> AgCl(s)