Giving credit to a photographer for using an original photograph must be completed in accordance with the photographer's terms. When there are no terms established beforehand, you can use a basic attribution. Contact the person when possible and ask whether use of the photo is permissible and how he would like to be credited. For purchased photos, the rights will often be spelled out in the initial sale. Some open-source photos, or photos that are in the public domain, don't require attribution. Check in advance to make certain you don't steal an artist's work.
Embed the image into your website. To the side or below the picture, enter the author's name using one of the following formatting examples: "Photo Credit: Anderson" or "Photo by Anderson."
Create a link for the photographer's website and either show the website directly beneath the author's name using the prefix "http://" or make the photo attribution a link that takes the reader to the photographer's page.
Make the photo linkable so that clicking the image takes you to the new website. To do this, use the following HTML code:
<a href="http://www.photographers_website" target="_blank">
<img src="http://www.image_location" width="368" height="247" border="2" style="border:2px solid black;" alt="Photo by Photographer" />
Take care to make the width and height the actual width and height of the image. Replace "http://www.photographers_website" with the photographer's website link. For the image location, enter the location of the image as it relates to your web server.