Niels Bohr proposed that electrons in an atom have fixed levels of energy and release energy in a pattern that is unique to each element. This explains why certain chemicals burn with specific colors of flames, as the energy released by the electrons is consistent across all atoms of that element.