I have heard that no one escape from the intense gravitational field of a black hole (obviously that's why it is black). And gravitational force is due to the mass having the body, no mass no gravity, as
Putting 0 in one of the two bodies' masses, gives no gravitational force. But light cannot escape from black hole due to its strong gravity, does that mean that light has mass? please correct me.