<html>
<body>
<form action="demo-form.php" method="get" id="form1">
What is your favorite color? <input type="text" name="fav_color"><br>
<input type="submit">
</form>
<p>The fieldset below is outside the form, but still a part of the form.</p>
<fieldset form="form1">
<legend>Personalia:</legend>
Name: <input type="text" name="username"><br>
Email: <input type="text" name="usermail"><br>
</fieldset>
<p><b>Note:</b> The form attribute of the fieldset element is only supported in Opera.</p>
</body>
</html>