why will the information from the first <input> element NOT be sent to /processing.html when the form is submitted?


Wed Oct 06 2021 00:09:29 GMT+0000 (UTC)

Saved by @ianvalentino #html #forms

<!--código mal-->
<form action="/processing.html" method="GET">
  <input type="text" id="username">
  <input type="submit" value="submit"> 

answ: The first <input> element is missing the name attribute which omits the <input>'s information. -- <form> Element The HTML <form> element is used to collect and send information to an external source. <form> can contain various input elements. When a user submits the form, information in these input elements is passed to the source which is named in the action attribute of the form.