The LEGEND element defines a caption for a fieldset.
<legend>fieldset legend</legend>
The LEGEND element is placed immediately after the FIELDSET start tag.
<form method="POST" action="example.cgi">
<fieldset>
<legend>fieldset legend</legend>
<p>Name : <input type="text" mame="name" size="30"></p>
</fieldset>
</form>
Example