Why is sunlight white,while a rainbow has many colours

The light from the sun is really mixture of many different colours or wavelengths of light .                                                                                                 As white light passes through droplets of water in the sky, the light is refracted or bent.The longer wavelengths of light are refracted more than shorter wavelengths.This causes the colours to be seperated