The arrangement of the elements in the periodic table comes from the electronic configuration of the elements. Because of the Pauli exclusion principle, no more than two electrons can fill the same orbital. The first row of the periodic table consists of just two elements, hydrogen and helium. As atoms have more electrons, they have more orbits available to fill, and thus the rows contain more elements farther down in the table.