Question: atoms of different elements have different energy levels for electrons?
Answer: Different elements have different energy levels because the nuclear charge is different. Also, they have a different number of electrons. The electrons all repel each other. They also cancel out the differences in nuclear charge, but only for differing portions of an electron's orbit.