Don't use form elements
Back when I was a boy and Netscape was around and the only way you could program webpages was to have a form submit to a cgi-bin script then <form> tags were useful. Nowadays they are an obsolete technology that still exists in browsers but we don’t need to use them as part of a modern web application.
In fact they cause all sorts of odd side effects with default keyboard actions and resolving to URLs with ? with the default submit action that it’s really best not to use them. You can create forms with input elements and collect data via Javascript apis without using the <form> tag.