X-rays are a form of ionizing radiation produced through interactions in electron shells. The document discusses the formation of x-rays in an x-ray tube, the spectra of x-rays including bremsstrahlung and characteristic radiation, and factors that affect x-ray beam quality such as anode material, voltage, current, and filters. It also examines the five types of interactions between x-rays and matter: photoelectric effect, Compton scattering, pair production, coherent scattering, and photodisintegration. The photoelectric effect is the dominant interaction at low energies important for medical applications.