The downside to that is that if you click through all of the images, pressing back in your browser won't take you to the previous page; instead you have to press back many times, cycling back through all the images, until you eventually are taken back to your previous page.
I didn't mean anchor; that's an implementation detail. If it were JavaScript it could just grab it from the location and no anchor anchor tag (as opposed to external link anchor tag) would be needed. I meant fragment identifier. http://en.wikipedia.org/wiki/Fragment_identifier Hash tag is just quicker to say.