Question: how is an electromagnetic wave created?
Answer: Electromagnetic waves are created by oscillating charges (which radiate whenever accelerated) and have the same frequency as the oscillation. Since the electric and magnetic fields in most electromagnetic waves are perpendicular to the direction in which the wave moves, it is ordinarily a transverse wave.