Salt is not only representing the edible salt. Salt is in general a neutralisation product of acid and base. So salt is typically made up of an acid radical and basic radical.
For example NaCl (Sodium Chloride) is neutralisation product of sodium hydroxide and hydrochloric acid.
NaOH + HCl --> NaCl + H2O
So in NaCl the Na part is representing the base and Cl is representing the acid.
Another example is Na2CO3 (Sodium carbonate) which can be considered as neutralisation product of carbonic acid (H2CO3) and sodium hydroxide (NaOH)
2NaOH + H2CO3 --> Na2CO3 +2H2O