Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fieldset inside fieldset

Tags:

html

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

like image 695
zby Avatar asked May 13 '09 11:05

zby


People also ask

Can Fieldset be nested?

The fieldset/legend structure is available for exact that - it can even be nested.

Can a Fieldset have two legends?

You can't have two legends for a given fieldset, but is there a way to get a legend effect without using the <legend> tag?

Can you have multiple Fieldsets in a form?

Multiple Fieldsets in a form are allowed. Example: Data entry fields in one fieldset and action buttons ('submit,' 'cancel' etc.) in a separate fieldset. Fieldset should always have a legend tag according to the standards.

Can I use legend without Fieldset?

You should not use the <fieldset> and <legend> when: You have a single form field that asks for a single piece of information.


1 Answers

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

like image 76
Quentin Avatar answered Sep 21 '22 13:09

Quentin