Need a different, better answer.
The lines are at the same frequencies
No, lines of a particular element do not appear at the same wavelength in both emission and absorption line spectra. In absorption spectra, dark lines are seen where specific wavelengths are absorbed by elements in a cooler outer layer of a star or a cooler interstellar cloud. In contrast, emission spectra display bright lines when elements emit specific wavelengths of light at higher energy levels.
Absorption of energy at atom energy levels cause the line spectrum.
Most stars have absorption spectra. In other words, stars possess thin outer layers that allow light to pass through. These layers produce what are called absorption lines. This means the light from the sun and stars are absorption spectra.
The spectra from stars are crossed with dark lines due to the absorption of specific wavelengths of light by elements in the star's atmosphere. As light from the star passes through this cooler outer layer, certain wavelengths are absorbed by atoms and molecules, resulting in dark lines at those specific wavelengths in the spectrum. These absorption lines provide valuable information about the star's composition, temperature, and other properties. This phenomenon is known as absorption spectroscopy.
Spectra are produced by interaction of electromagnetic radiation with matter, typically atoms or molecules. The particle responsible for spectra is the photon, which carries energy and interacts with electrons in the atoms or molecules to produce the spectral lines observed in both emission and absorption spectra.
Emission spectra are bright-line spectra, absorption spectra are dark-line spectra. That is: an emission spectrum is a series of bright lines on a dark background. An absorption spectrum is a series of dark lines on a normal spectrum (rainbow) background.
Each substance has known specific maximum of absorption. Comparing spectra substances can be identified.
Different chemical elements emit (or absorb) certain specific frequencies of light. When the light from a star is split in to it's rainbow spectrum of light, certain parts of the spectrum will be black (in absorption spectra) or brighter (in emission spectra). By comparing these lines to the known emission and absorption spectra of elements, the composition of a stars atmosphere can be determined.
There are three main types of infrared spectra: absorption spectra, emission spectra, and reflection spectra. Absorption spectra are produced when a material absorbs infrared energy, emission spectra are produced when a material emits infrared radiation, and reflection spectra result from the reflection of infrared radiation off a material.
The extinction spectra is actually the measurement of light absorption in different mediums. This spectra is used in chemistry and biochemistry.