The nucleus of an atom contains protons and neutrons. Electrons are located outside the nucleus in electron shells or orbitals.