I think it is not allowed to have embedded fieldsets (fieldset inside another fieldset) - but I would like to confirm that.
+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
2009-05-13 11:17:20
+1
A:
Yep you can do that. more info http://reference.sitepoint.com/html/fieldset
Blackbird
2009-05-13 11:18:55
+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
2009-05-13 11:20:07