A compound has another properties than the elements contained in the formula.
You have answered the question for yourself. The components of sodium chloride are 'sodium' and 'chlorine' . However, both are ions NOT elemental atoms. The ions being Sodium cation (Na^(+)) & Chloride anion (Cl(_)). There are NO other elements present in sodium chloride.
Sodium chloride (NaCl) contain sodium and chlorine.
Sodium chloride (NaCl) contain sodium and chlorine.
Sodium chloride (NaCl) contain sodium and chlorine.
Sodium chloride (NaCl) contain sodium and chlorine.
Sodium chloride (NaCl) contain chlorine and sodium.
Sodium chloride contain sodium and chlorine.
The tablet contain sodium chloride.
Sodium chloride (NaCl) contain chlorine and sodium.
Sodium chloride is NaCl: contain sodium and chlorine.
Sodium chloride (NaCl) contain sodium and chlorine.
Sodium chloride (NaCl) contain sodium and chlorine.