To understand spectral lines you have to understand some Atomic Physics.
What makes an element? The number of protons in the nucleus of an atom is what defines an atom.
For example, Hydrogen (H) atoms have 1 proton ( )
Q.) How many neutrons in ?