Prism spectrum is formed due to DISPERSION but grating spectrum
is formed due to DIFFRACTION.
In prism spectrum we have only one order but in grating spectrum
we can have second order too
IN prism spectrum we have continuous spectrum but in gratings we
have only line spectrum
In prism spectrum red end will be closer to the direct ray but
in grating spectrum violet end will be closer to the direct ray