The electromagnetic spectrum is a classification of all electromagnetic waves by their respective wavelengths and frequencies, encompassing types from radio waves to gamma rays.