Fireworks displays on Independence Day are created by the combination of different metal salts, which emit light at unique wavelengths to produce vibrant colors.