This is a classic example of a flame test, a technique used to identify the presence of certain elements in a sample by observing the color of the flame produced when the sample is heated. The yellow color is due to the excitation of sodium atoms in the flame, which then emit light at a specific wavelength within the yellow portion of the visible spectrum.