Is it possible to wrap html form elements in multiple form tags?

后端 未结 2 2003
轮回少年
轮回少年 2021-01-13 21:56

Would it be wrong to have every element of a form wrapped in

tags in an HTML page? Am curious as to why it would be wrong:

Basically I have

2条回答
  •  梦谈多话
    2021-01-13 22:31

    Nested forms are not allowed, according to the specification:

    Flow content, but with no form element descendants.

    Given this input in the w3 validator:

    tit
    
        
             
        
        
    
    

    The w3 validator says:

    Saw a form start tag, but there was already an active form element. Nested forms are not allowed. Ignoring the tag.

提交回复
热议问题