why is the sky blue?

is it because of elements in the atmosphere that when the sunlight which is made of multiple colors hits it the other colors are absorbed and blue is reflected?

2 answers

Look up Rayleigh scattering.
thank you