title: Which tags are counted in form.elements?
body: <p>What tag is counted in <code>form.elements</code>?</p>
  
  <pre><code>&lt;html&gt;
     &lt;head&gt;
        &lt;title&gt;
            form process
        &lt;/title&gt;
        &lt;script&gt;
            function showelements()
            {
                var form = document.getElementById("f");
                var n = form.elements.length;
                alert(n);
            }
        &lt;/script&gt;
     &lt;/head&gt;
     &lt;body&gt;
           &lt;form id="f" action="#" method="post"&gt;
              &lt;p&gt;Hello&lt;/p&gt;
              &lt;input type="text" /&gt;
              &lt;input type="text" /&gt;
              &lt;button onclick="showelements()"&gt;Click&lt;/button&gt;
          &lt;/form&gt;
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I think <code>n = 4</code> because there are 4 elements: <code>p</code>, <code>input</code>, <code>input</code>, <code>button</code>, but the result <code>n = 3</code>. </p>