html - Can I use <dl> to display input, select,..? -


here's scenario:

the scenario

if text use dl tags. however, there input, checkboxes, dropdown list. semantics use dt , dd? if not, tag appropriate?

thank you

the content model of dl elements is

zero or more groups each consisting of 1 or more dt elements followed 1 or more dd elements, optionally intermixed script-supporting elements.

the content model of dt elements is

flow content, no header, footer, sectioning content, or heading content descendants.

the content model of dd elements is

flow content.

flow content includes input , select elements (among others).

so yes, it's allowed.


Comments