Does a name attribute have to be unique in a HTML document?

后端 未结 3 908
一生所求
一生所求 2020-11-28 11:53

I remember reading in the spec once that both the id attribute and the name attribute share the same namespace and have to be unique. Henceforth I\

3条回答
  •  抹茶落季
    2020-11-28 12:22

    The name attribute is only valid on the

    and form elements (,