I apologize if my previous response was unclear. The speed of light is not infinite; rather, it is finite and constant in a vacuum. According to Einstein's theory of relativity, the speed of light in a vacuum is approximately 299,792,458 meters per second (or about 186,282 miles per second).
Light can travel through space because it is an electromagnetic wave that does not require a medium to propagate. In other words, light does not need a physical substance to move through, like air or water. Instead, it consists of oscillating electric and magnetic fields that can travel through the vacuum of space.
When light encounters matter, such as gas, dust, or a solid object, its path may be affected due to interactions with atoms or particles. This can result in phenomena such as absorption, scattering, or refraction. However, in the absence of such interactions, light can travel across vast distances in space at its constant speed.
It's important to note that the speed of light is an upper limit for the propagation of information and material objects in the universe. Nothing with mass can reach or exceed the speed of light, as doing so would require infinite energy, according to our current understanding of physics.