
Danielle P. answered 06/05/19
Guest Teacher in CCSD, UCSC B.S. Astrophysics,UNLV M.Ed. in Sec. Math
Hi there,
Atoms make up everything.
And atoms can do BOTH emit and absorb photons.
Photons are absorbed when the wavelength of photon is equal to one of the energy gaps of the atom (since wavelength/frequency is proportional to energy of a photon). These appears as dark lines or no peak (depending what program you're using to analyze these lines) because they were absorbed by the electron and that electron gets excited to the next energy level. Then, the excited electron will want to go to a lower energy state (with appropriate conditions) and when it drops to the lower levels, it releases (or emits) that energy in the form of photons.