Electrons fill energy levels starting with the levels that are close to the nucleus. The levels are called orbitals and each orbital must be filled before the next orbital can be filled also the 1st orbital can only hold 2 electrons.
5.1m questions
6.7m answers