<html>
<body>
<form action="SubscribeForm.aspx" method="post">
<fieldset>
<legend>Name:</legend>
<label for="id_first">First</label>
<input type="text" id="id_first" name="form_first">/input>
<label for="id_last">Last</label>
<input type="text" id="id_last" name="form_last">/input>
</fieldset>
<fieldset>
<legend>Contact info:</legend>
<label for="id_email">Email</label>
<input type="email" id="id_email" name="form_email">/input>
</fieldset>
<button type="submit">Subscribe</button>
</form>
</body>
</html>
The fieldset element creates a titled border around a collection of related form fields.
A live example:
N of