The more atoms undergoing a particular transition, the more intense the emission line will be. The intensity depends on the density and temperature of the gas. An absorption line is produced when a photon of just the right energy is absorbed by an atom, kicking an electron to a higher energy orbit.