An X-ray is an electromagnetic ray having an extremely short wavelength that ranges from about o.1 to 10 nanometers. It is formed by the bombardment of a metal target with high-speed electrons in a vacuum tube or by the transfer of electrons to the inner shells of heavy atoms.