Photons are particles, yet they have no rest mass. They have inertial mass, which is not the same thing. If you tried to "weigh" a photon that was theoretically sitting as a regular particle at rest in the gravity field of earth, you would find that it does not have any mass whatsoever.