The sky appears blue because some of the blue component of sunlight is scattered by:

The sky appears blue because some of the blue component of sunlight is scattered by gas molecules present in air.

18