Electromagnetic waves have both electric and magnetic components. Electromagnetic radiation can be arranged in a spectrum that extends from waves of extremely high frequency and short wavelength to extremely low frequency and long wavelength.
Visible light is only a small part of the electromagnetic spectrum.
In order of decreasing frequency, the electromagnetic spectrum consists of gamma rays, hard and soft X-rays, ultraviolet radiation, visible light, infrared radiation, microwaves, and radio waves. Thus, light and radio waves can travel through interplanetary and interstellar space from the Sun and stars to the Earth. Regardless of their frequency and wavelength, electromagnetic waves travel at the same speed in a vacuum. All the components of the electromagnetic spectrum also show the typical properties of wave motion, including diffraction and interference. The wavelengths range from billionths of a centimetre to many kilometres.