Sodium is a considered a metal and chlorine is a halogen and a nonmetal. When these elements come together they form, what we call an ionic compound. Specifically NaCl. Chlorine is a diatomic element. Which means chlorine is in a Cl2 form. Two mole of Na and 1 mole of Cl2 makes 2 moles of NaCl or sodium chloride or table salt.