HTML form fieldset
From w3cyberlearnings
Contents |
HTML - Fieldset
The fieldset tag is used to group related information in a form, and it draws a box container around all the elements within it. Use legend to define the caption of the fieldset.
HTML - Syntax Fieldset
<fieldset> <legend> Filed Set Label Header </legend> ....... ......... </fieldset>
Example 1
<html> <head> <title>Fieldset</title> </head> <body> <form> <fieldset> <legend>Login Information</legend> <label for="firstname">First Name:</label> <input type="text" id="firstname" name="firstname"/><br/> <label for="lastname">Last Name:</label> <input type="text" id="lastname" name="lastname"/><br/> <label for="emailrequest">Login Email:</label> <input type="text" id="emailrequest" name="emailrequest"/><br/> <input type="submit" name="submitform" value="Submit Request"/> <input type="reset" name="resetform" value="Reset"/><br/> </fieldset> </form> </body> </html>
Output TRY-IT
Related Link
- Form Hidden Field
- Form Fieldset
- Form File Upload
- Form autocomplete