X-rays are a form of electromagnetic radiation that is used for medical imaging, treating cancer and even used for exploring the cosmos.