X-rays occupy a position in the electromagnetic spectrum between ultraviolet radiation and gamma rays, characterized by wavelengths in the range of approximately $10^{-11}$ m to $10^{-8}$ m.