When magnesium is burned, it reacts with oxygen in air not with the fire. The fire is the energy needed for the reaction to happen. Magnesium reacts with oxygen forming magnesium oxide. The light emitted from the reaction is because the reaction produced a lot of heat.
BY CHECKING THE REACTIVITY OF AN ELEMENT WHICH IS MOST REACTIVE OR NOT AND YOU STUDY TYPE OF CHEMICAL REACTION IN 1 CH AND YOU CHECK THE REACTIVITY OF ELEMENTS IN 3 CH METALS AND NON METALS PAGE NO 45 IN NCERT BOOK
Yeah of-course!! It's valency by group most of the chemical property like electronegativity, ionization energy etc. by the combination of groups and periods...