https://studyandupdates.in/when-a-metal-is-heated-in-a-flame-the-electrons-absorb-energy-and-jump-to-higher-energy-state-on-coming-back-to-the-lower-energy-siate-they-emit-light-which-we-can-observe-in/
When a metal is heated in a flame the electrons absorb energy and jump to higher energy state On coming back to the lower energy siate they emit light which we can observe in