The compounds formation takes place with the two elements. The compound may have ionic bond or covalent bond. The elements in the compound are metal and non-metal, then the bonding will be ionic.
This bonding takes place between these groups .The naming of compound is done as the name of metal will be in the first place while non-metal will be second. For example
Thus, by the type of bonding and name of the compound, an ionic compound can be identified.