Question: how do you know electromagnetic waves can travel through a vacuum?
Answer: An EM wave can travel without a material medium—that is, in a vacuum or space empty of matter—and does not lose energy as it moves. In theory, an EM wave can travel forever. Because they do not need a medium, EM waves can pass through outer space, which is a near vacuum.