title: How can I submit <form>'s data without <button> in HTML?
body: <p>As I am beginner in HTML, could someone make a logical explanation on the following? I can submit data using <code>&lt;button type=&quot;submit&quot;&gt;</code>, but if I had a single <code>&lt;form type=&quot;text&quot;&gt;</code>, I could submit it just by pressing <code>enter</code>.</p>
  <p>As I failed to gather any info on that, does someone know how does it happen? Wouldn't it make sense to always have a button that would <em>submit</em>, and not also waiting for the <em>user's enter</em>? It feels as if <em>enter</em> on keyboard is same as <em>button submit</em>. Example:</p>
  <pre><code>&lt;form action=&quot;https://www.youtube.com/results&quot;&gt;
      &lt;input type=&quot;text&quot; name=&quot;search_query&quot;&gt;
      &lt;button&gt;Submit me!&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>This one also works by pressing just <em>enter</em>:</p>
  <pre><code>&lt;form action=&quot;https://www.youtube.com/results&quot;&gt;
      &lt;input type=&quot;text&quot; name=&quot;search_query&quot;&gt;
  &lt;/form&gt;
  </code></pre>
  <p>P.S. Of course on both these input types we have to type <strong>dog</strong>.</p>