Conversion of electric energy into electromagnetic waves can be done by an AC current with a desired freq of waves. Hence by changing the current it results in magnetic field , accelerated electron particles radiate in the form of waves ; Electromagnetic waves.
Visible light is an electromagnetic radiation. Other familiar electromagnetic radiations are invisible to the human eye, such as radio waves, infrared light and X-rays.
"electromagnetic radiation consists of electromagnetic waves"