In the electromagnetic spectrum, Infrared rays has higher wavelength than the visible rays and the ultraviolet rays has smaller wavelength as compared to the visible light. Also we have seen that the visible light contains different types of colors when the light is made to pass through the prism.