Html 5 fieldset tag

In the html5 <fieldset> tag is used to can group elements of inside form and if you use <fieldset> and the <legend> tag for form you can do to identify more forms for your user and also you disable all child element inside of <fieldset> tag.


   <legend> ... </legend>

Example Code

      <legend> Registration Form </legend>
     User Name :  <input type="text" />
      Password :    <input type="password" />
      Address :      <textarea> </textarea>
      Phone No :    <input type="text" />
    <input type="submit" value="submit" />

Out Put:

 Registration Form  User Name :  
Password :   
Address :      
Phone No :   

In the above example has been added <fieldset> and <legend> tag for Register Form.