Isotopes are variants of an element that have the same number of protons but different numbers of neutrons in their atomic nuclei, resulting in different atomic masses.