This question already has an answer here:
I've been reading about how black holes can effect both time and light with gravity. So I was wondering, doesn't something have to have mass to be effected by gravity? And if so, does this mean both light and time have mass? And if not, how can gravity effect something that has no mass?