Syntax
[wp_caption
id="| text - value for CSS id= keyword"
class="| classname - custom class"
align="alignnone| aligncenter| alignright| alignleft - CSS alignment class"
width="| numeric - width in pixels (Note: 10 is added to this number)"]
then you code the HTML for the image as the code of the shortcode
followed by the end tag [ /wp_caption]
The easiest way to create the wp_caption shortcode is to use the Insert image into post button on the Add media dialog.
It creates the caption shortcode; wp_caption is an alias of caption.
For more information about caption / wp_caption see caption shortcode