Why is the sky blue?

Anywhere in the world we see the sky blue, has it always been blue? Is there something in the atmosphere that absorbs other wavelenghts? Form space we also see the earth blue (at least a portion of it), does this has something to do with the sky being blue too?
7 answers 7