Absorbed energy results in electron excitation. De-excitation then occurs, whereby electrons fall back down to the ground state. Energy levels are quantised, therefore each line represents a specific frequency/wavelength. The energy emitted is proportional to the wavelength and frequency (E=hf).