1) Light refracts when passing from one medium to another of different density, bending towards the normal. The refractive index is a ratio of light speeds and relates the angle of incidence to refraction.
2) Total internal reflection occurs at a critical angle when light passes from a dense to less dense medium.
3) A prism disperses white light into a spectrum due to different refractive indices for each color, with violet refracting most and red least.