How does an LED work?
An LED is a tiny semiconductor chip. When current flows, electrons drop into "holes" at the junction between two layers, and each drop releases a photon of light. The material sets the colour, and white LEDs are blue LEDs with a yellow phosphor coating.