Forms

legend

Defines and shows a caption for a fieldset. This tag must be placed directly after the fieldset opening tag. Inline element

Syntax

<legend attributes> ... </legend>

Example

<fieldset>
   <legend>A fieldset caption</legend>
   <input id=”name” name=”name” type=”text” />
  ... 
</fieldset>

Related tags

CSS Properties

HTML attributes

Search the Soup!