No, light does not travel only in one dimension. Light is an electromagnetic wave that propagates in three dimensions: length, width, and height. This three-dimensional propagation allows light to travel in all directions from its source, such as the Sun or a light bulb.
The behavior of light can be described using concepts like rays, which represent the path of light in a simplified manner. A ray of light is often depicted as a straight line indicating the direction of propagation. However, this is just a simplified representation used for practical purposes.
In reality, light consists of a continuous spectrum of wavelengths, and its propagation is best described by electromagnetic waves that have both electric and magnetic field components oscillating perpendicular to each other and perpendicular to the direction of propagation. This three-dimensional nature of light allows it to interact with objects and travel in various directions.