title: Does a name attribute have to be unique in a HTML document?
body: <p>I remember reading in the spec once that both the <code>id</code> attribute and the <code>name</code> attribute share the same namespace and have to be unique. Henceforth I've always tried to fulfill this requirement in my applications, dreading even to give the same <code>id</code> and <code>name</code> to the same element.</p>
  
  <p>But lately I've started working with ASP.NET MVC 3, and it (like PHP) can use the same <code>name</code> attribute on several input controls to form a collection of values at server-side. I tried to look up the relevant section in the spec - but failed to find it. Perhaps I have misunderstood something then, or read the wrong documentation?</p>
  
  <p>How is it then? I want to produce as valid HTML as possible (both 4.01 and 5 in different apps). Can I use this trick without fear? Or would I be violating something and should better stick to unique values?</p>