I Didn't Know That: Fireworks

What makes fireworks flash the way we like them, and what makes them burst in the sky?