Forms: input label button
Build accessible HTML forms with labeled inputs, different input types, textareas, selects, and submit buttons.
Why HTML Forms?
Forms are the primary way users send data to a server: login, search, checkout, feedback. Browsers provide a huge amount of built-in behaviour — validation, keyboard input, mobile keyboards — that you get for free by using native form elements.
The <form> Element
The <form> element wraps all related controls. The action attribute sets the URL that receives the data; method sets GET or POST. For SPAs you often prevent the default submission and handle it with JavaScript.
<form action="/submit" method="POST">
<!-- inputs go here -->
</form>