From http://www.w3schools.com/tags/tag_legend.asp

The <legend> tag defines a caption for the fieldset element. In the example below the legend corresponds to the term "Personal Information" and the box that surrounds the fieldset information.

Note: If there is no border around the form, the browser does not support fieldset.

Legend Sample

Personal Information Name:
Date of birth: