Question

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

No correct solution

OTHER TIPS

<!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.

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>

No, it's legal.

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

This is legal and in fact I have used it a number of times

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top