An HTML form is used to collect user input.
Whether you’re building a login page, a search bar, or a feedback section — forms are how users send data to a web server for processing.
The <form> Element The <form> tag is the main container for input fields and other interactive elements.