Electron emitted from the cathode are accelerated towards the target, strike it. and penetrate deep into the intensity of its atom. those electron are attracted by the nuclei due to strong electrostatic interaction. the electron therefore deviates from its original path. the deviation of the electron is equivalent to its collision with the nucleus. so the electron loses some of its energy due to collision. this energy appears as an x-ray spectra. the electron may suffered several collision with various nucleus before coming rest. each collision is accompanied by emission of x-ray photon. thus large number of photon of different frequencies are emitted as there are large number of electrons in the beam and each electron suffered collision in different way, we get photons of almost all frequencies of wavelength, thus producing a continuous x-ray spectra.