Electron affinity increases upward for the groups and from left to right across periods of a periodic table because the electrons added to energy levels become closer to the nucleus, thus a stronger attraction between the nucleus and its electrons
Most of an atom consists of empty space. Its mass is concentrated in its center, which is called the nucleus. The nucleus consists of protons and neutrons.