Lighting things on fire can be a legitimate science experiment. The reason: some elements can be identified by the colors they emit while burning.