title: What does it mean for an "input" element to be associated with the nearest containing form?
body: <p>According to the developer.mozilla.org's description of the &quot;form&quot; attribute of an &quot;input&quot; element,</p>
  <blockquote>
  <p>If this attribute isn't specified, the  element is associated
  with the nearest containing form, if any.</p>
  </blockquote>
  <p>I struggle to understand what is that supposed to mean. If an &quot;input&quot; element, outside a &quot;form&quot; container, does not have a &quot;form&quot; attribute, it will simply not be connected in anyway to that form. How exactly is it going to get &quot;associated with the nearest form container&quot;? I don't understand what they mean by this.</p>
  <p>Can anybody explain?</p>
  <p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefform" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefform</a></p>