This article needs additional citations for verification. (September 2020)
The charge of the electron is considered negative by convention. The negative charge of an electron is equal and opposite to charged proton(s) considered positive by convention. The net charge of an ion is non-zero due to its total number of electrons being unequal to its total number of protons.
A cation is a positively charged ion with fewer electrons than protons while an anion is negatively charged with more electrons than protons. Because of their opposite electric charges, cations and anions attract each other and readily form ionic compounds.
Ions consisting of only a single atom are termed atomic or monatomic ions, while two or more atoms form molecular ions or polyatomic ions. In the case of physical ionization in a fluid (gas or liquid), "ion pairs" are created by spontaneous molecule collisions, where each generated pair consists of a free electron and a positive ion. Ions are also created by chemical interactions, such as the dissolution of a salt in liquids, or by other means, such as passing a direct current through a conducting solution, dissolving an anode via ionization.