Example of HTML fieldset tag - HTML CSS HTML

HTML CSS examples for HTML:Form

Description

Example of HTML fieldset tag

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head> 
  <title>Example of HTML fieldset tag</title> 
 </head> <!--from   w  w  w.  j  a v a  2s  .c o  m-->
 <body> 
  <form action="http://www.example.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>

Related Tutorials