Reactions of metals when heated in air
When a metal is burnt, what actually happens is the metal reacts with the oxygen in the air to produce a metal oxide. As the metal burns, a bright flame is produced, the colour of which can be used to identify the metal compound. Fireworks contain small metal filings to produce the bright range of colours you see at displays.