The diffraction of x-rays of single wavelength takes place only at certain angles, (known as the Bragg angle),where there is
constructive interference and Bragg's law is thus satisfied. The reflection of visible light takes place at any angle of incidence.