Fog lights are distinguished from regular headlights by being both centrally located and LOW.
Lower is better as fog tends to hover slightly above the ground, and the lights are lower to reduce the amount of light directly reflected back by the fog into the drivers eyes.
The yellow light is used because the reflected light is less glaring.