Answer:
The color of the light emitted depends on the energies of the photons emitted, which are in turn are determined by the energies required to move electrons from one orbital to another. Depending on the element you put in the flame, various different energies of photons (colors) will appear. Those colors are as distinctive to each element as fingerprints are to people.
Step-by-step explanation: