Salt is an ionic compound formed when hydrogen ion in acid is replaced bt metal ion or ammonium ion.
HCl + NaOH --> NaCl + H2O
sodium ion replace hydrogen ion to formed sodium chloride salt.
Here some note about 2 class of salt, Soluble and Insoluble salt.
Salt Part 1