You are here : htmlHTML 5fieldset

<fieldset> - HTML 5

The <fieldset> tag is used to group related elements in a form.

The <fieldset> tag draws a box around the related elements.


Syntax

    <form>	 	<fieldset>	   	<legend>Personalia:</legend>	   	Name: <input type="text"><br>	   	Email: <input type="text"><br>	   	Date of birth: <input type="text">	 	</fieldset>	</form>


Example

    <form>	 	<fieldset>	   	<legend>Personalia:</legend>	   	Name: <input type="text"><br>	   	Email: <input type="text"><br>	   	Date of birth: <input type="text">	 	</fieldset>	</form>


Output / Return Value


Limitations


Alternatives / See Also


Reference