Electromagnetic waves are transverse waves that are created by oscillating electric and magnetic fields. They exhibit properties of reflection, refraction, and energy transfer. Electromagnetic waves vary in wavelength from long radio waves to very short gamma rays, with shorter wavelengths corresponding to higher energy. The electromagnetic spectrum maps all electromagnetic waves according to their frequency and wavelength, ranging from radio to gamma rays. Examples of uses of different electromagnetic waves include communication with radio waves, cooking with microwaves, infrared for TV remotes, visible light, ultraviolet from the sun, x-rays for medical imaging, and gamma rays for cancer treatment.