Electrons are accelerated - via an applied potential difference - through a bulb which contains low density gas such as neon or mercury. Electrons collide with electrons in the gas atoms, causing these electrons to excite, emit photons and de-excite. These photons are then absorbed by electrons in the phosphor coating of the bulb. This causes excitation and de-excitation of the electrons which leads to photons of visible light being produced.