Although the light is made up of photons, particles with energy but no mass, the general theory of relativity allows them to react to very strong gravitational fields (for example sun or black hole).
The majority of the times light can be scattered with a certain material- it is glass or a triangular prism made out of glass. How rainbows are made, is the raindrops in the sky catch rays of...