Respuesta :
As the electrons return o lower energy levels they gain energy in the form of light so this means that the colour of the light depends on the difference between two levels
Different elements produce different colors of light when heated because the electrons in these elements have different permissible energy levels. When an element is heated, the electrons inside it become excited and move to an higher energy level from the ground state. When the electrons drop from this higher energy level, they typically emit energy quantum, the color of the light that is observed at this stage depends on difference that exist in the two energy levels.