tags:

views:

927

answers:

5

I think it is not allowed to have embedded fieldsets (fieldset inside another fieldset) - but I would like to confirm that.

+1  A: 

No, it's legal.

Oli
+5  A: 
<!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group -->

Fieldset must contain a legend followed by zero or more %flow elements

<!ENTITY % flow "%block; | %inline;">

Flow includes %block

<!ENTITY % block
 "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
  BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">

Block includes FIELDSET

It is fine.

David Dorward
+1  A: 

Yep you can do that. more info http://reference.sitepoint.com/html/fieldset

Blackbird
+2  A: 

Yes, you can. The W3C validator at http://validator.w3.org/ is happy with this:

<html><head><title>test</title></head>
<body><form action='go'>
<fieldset><legend>1</legend>
<fieldset><legend>2</legend>
<input type='text'>
</fieldset>
</fieldset>
</form>
</body></html>
RichieHindle
A: 

This is great. I was sure it wouldn't be allowed!

Paul