Fieldset Tag in HTML | Use of HTML Tags
×

HTML FIELDSET (<fieldset>) Tag

2870

The HTML FIELDSET <fieldset> tag define a set of form fields in an HTML document.

The <fieldset> tag can rarely used with the <legend> tag in html form documents. The <legend> tag work a caption for the <fieldset> tag. The <fieldset> tag comes in pairs as <fieldset></fieldset> (start and end tags).

Code:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Example of HTML fieldset Tag</title>
</head>
<body>
  <h2>Example of fieldset Tag</h2>
   <form action="http://www.codingtag.com/" method="post">
     <fieldset>
       <legend>Gender</legend>
       <input type="radio" name="gender" value="male" id="male">
       <label for="male">Male</label>
       <input type="radio" name="gender" value="female" id="female">
       <label for="female">Female</label>
     </fieldset>
   </form>
</body>
</html>

Output:



Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments