The use of <fieldset> tag in html

Discussion in 'HTML & Website Design' started by Stefany93, Sep 22, 2012.

  1. #1
    Dear friends,


    I am creating a register form and I was wondering whether to use the <fieldset> tag in HTML in order to group the form fields nicely. Is this approach still being used or is it deprecated?

    Thank you!

    Best Regards
    Stefany
     
    Solved! View solution.
    Stefany93, Sep 22, 2012 IP
  2. php_developer

    php_developer Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    generally we use the filedset tag in htmal for to group related elements in a form.Filedset tag are using the draws a box around the related elements.
    for ex:-
    <form>
    <fieldset>
    <legend>Registration form:</legend>
    Name: <input type="text" /><br />
    Email: <input type="text" /><br />
    Date of birth: <input type="text" />
    </fieldset>
    </form>
     
    php_developer, Sep 22, 2012 IP
  3. #3
    The HTML <[FONT=&amp]fieldset>[/FONT] tag is used for grouping related form elements. By using the <fieldset> tag and the <legend> tag, you canmake your forms much easier to understand for your users.
     
    sandyadevi, Sep 22, 2012 IP
  4. Stefany93

    Stefany93 Greenhorn

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    ^^ Thank you very much for the help everyone!
     
    Stefany93, Sep 22, 2012 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    @php_developer: Where's your labels? :p
     
    deathshadow, Sep 22, 2012 IP
  6. alexkboorman

    alexkboorman Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #6
    ^ he's right. You need some labels ;)
     
    alexkboorman, Sep 22, 2012 IP