A simple view of the formation of an ionic compound is that the electrons lost by the cation are gained by the anion;
When naming an ionic compound, the cation is written first.
the cation<>is written<>first<>When naming an ionic compound