Light, heat (in the form of radiation), and other electromagnetic waves (like radio waves, X-rays, etc.) are electromagnetic waves. Electromagnetic waves do not require a medium and can travel through the vacuum of space. This is why we receive light and heat from the Sun across the vacuum between the Sun and Earth.