SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2005
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using the Fieldset Tag

    Is the fieldset tag only really for use in form layout, or can you use it in other instances if you wish? Whats the best practice with this one guys?

    cheers

  2. #2
    SitePoint Member
    Join Date
    Aug 2007
    Location
    Roscoe, IL
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As far as I know the fieldset should tag should only be used for form data, as it's a container for 'fields' in a form.

  3. #3
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <fieldset> elements should only be used in <form> elements.

    CSS can be used to achieve the look of a <fieldset> with other elements.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The wording in the DTD makes it quite clear that FIELDSET is only to be used in forms:
    Code:
    <!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(&#37;flow;)*) -- form control group -->
    Birnam wood is come to Dunsinane

  5. #5
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,495
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And for how to use them with CSS, check out Tyssen's article Legends of Style.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •