LEGEND is used with the FIELDSET command. FIELDSET groups the items in forms together, and LEGEND denotes these groups.
<FIELDSET> <LEGEND>User Info</LEGEND> Name: [Input Text Box] EMAIL: [Input Text Box] AGE: [Input Text Box] </FIELDSET>
In this example some additional tags (B, PRE) have been used to make the example look nicer, the text wouldn't normally be bold in some areas, and the "text boxes" wouldn't be aligned perfectly.
Other groups could be made by adding the additional FIELDSET and LEGEND tags.