This form example demonstrates how to code a form with a fieldset tag in it. The fieldset tag is used to group a set of related elements in a form. The legend tag is inside to label the fieldset.
<!DOCTYPE html> <html> <head> <title>XoaX.net's HTML: Form - Fieldset Tag Example</title> </head> <body> <form> <fieldset> <legend>Author Information:</legend> Name: <br /> <input type="text" name="username" value="John Milton"><br /><br /> Gender: <br /> <input type="radio" name="gender" value="male" checked> Male<br /> <input type="radio" name="gender" value="female"> Female<br /> </fieldset> </form> </body> </html>
© 20072024 XoaX.net LLC. All rights reserved.