Search notes:

HTML element: legend

The <legend> specifies the caption (i.e. the legend) of a <fieldset>.
<!doctype html>
<html>
<head>
  <title>fieldset and legend</title>
</head>

<body>

  <form action="#">

    <fieldset>                         <!-- fieldset: draw a border               -->
      <legend>Enter your data</legend> <!-- legend: place a title onto the border -->

      <table summary="data panel">
        <tr><td>Value one: </td><td><input type="text" id='val_01'></td></tr>
        <tr><td>Value two  </td><td><input type="text" id='val_02'></td></tr>
        <tr><td>Value three</td><td><input type="text" id='val_02'></td></tr>

      </table>

    </fieldset>

  </form>

</body>
</html>
Github repository about-html, path: /tags/fieldset-legend.html
The html above is rendered like so:
Note the legend (»Enter your data«).

See also

HTML elements

Index