HDR stands for High Dynamic Range. When you turn on HDR your iPhone will take three photos in rapid succession. It takes one normal, one over exposed, and one underexposed photo. It then combines the three to produce highest possible quality photo.
You can choose to save the normal photo along with the HDR just in case you aren't happy with its results.
Take a look at a few of the examples below or hit the link for more.