Fire accompanies the combustion process, so let's first take a look at what is burning.
There is this kind of interaction between substances, called oxidation, or oxidative chemical reaction. When this combustible substance reacts with a substance, which is called the oxidizing agent. One such substance is the oxidizing gas is oxygen, which is contained in the air. Combustion is the oxidation of combustible materials, which is intensive, rapidly, emitting a large amount of heat and light.
And fire is the phase of the combustion process. Fire is an area of space in which substances that interact in the process of combustion, and the combustion products represent the flow of hot gases. The flame is usually directed upwards, because the hot gases are always striving to climb up.
The temperature of the fire depends on what substances are involved in the combustion reaction.
What determines the color of fire?