Electromagnetic waves are formed by vibrating electric charges and can transfer energy through space without matter. They are transverse waves consisting of oscillating electric and magnetic fields. Electromagnetic waves can behave as either waves or particles called photons, with higher frequency waves having shorter wavelengths. The entire range of electromagnetic wave frequencies is called the electromagnetic spectrum.