A photon (elementary particle that makes up light) does not have a (rest) mass, but it does have energy $E$ and momentum $p$, given by the relation
$$E=pc$$
where $c$ is the speed of light.
(The full form of this equation for a general particle is $E^2=m^2c^4+p^2c^4$ - if you consider a stationary particle, which is not the case for a photon, then you end up with the famous $E=mc^2$ equation).
To accelerate towards the speed of light, a particle with mass would need infinite energy - this falls out of special relativity formulae. In addition to the above general formula I gave, another way of expressing the energy of a particle with mass is
$$E=\gamma mc^2$$
where the "Lorentz factor" features here, which is:
$$\gamma = \frac{1}{\sqrt{1-\frac{v^2}{c^2}}}$$
which explodes to infinity as $v\rightarrow c$ and so if you want to get a massive particle with $v=c$, you would need infinite energy.