Dark matter, is just a name for something we know nothing of. It accountswas named to account for an extra gravity source thatfor which there have been indirect observations, but yet we cannot explain. Light is not a
The force of gravity source, hence it cannotexerted by light is negligibly small yet we have measured the gravitational pull of Dark Matter to be big enough to affect whole galaxies; it is what binds galaxies together.
Furthermore, we have included everything we can observe (all ordinary matter including photons) when we do the 'darkcalculations for the amount of gravity there should be. So light is already there. 'Dark matter' is that extra gravity which we are lookingcannot account for.