Form elements: form, input, textarea, button, select, label
Multiple Form Input Controls HTML5 provides web developer with many different form control elements that help HTML web developer to create multiple form control input control choices for internet users. Here in basic form input element controls you can find <form> start tag, <input> multiple input type selection, <textarea> user text area, <button> multiple button creation choice, <select> single item selection choice input control in multiple items and <label> providing for each input control used in the form etc. These are form input controls. Every design form input control in HTML web page has unique features and attributes, using these form controls and attributes you can design the desired HTML web page.

So, let’s analyse the multiple form input controls in HTML5 web page.
HTML5 <form> tag.
The <form> tag in an HTML5 web page provides multiple form element choices by providing form creation form design input controls. Form is a data collection tool or resource through an online web site, which stores digital information requested in a form designed by the web developer in a dedicated web server.
Form Attributes.
- Form action – Here it submits the digital information collected in the form to the dedicated web server URL location.
- <form action=”submit.php” method=”post”>
- Form method – It indicates the http protocol location method to submit the online user form in the form.
- Form GET method – The form get method adds or stores user query information data in a dedicated web URL address location.
- Form POST method – The form post method sends or uploads data to the dedicated web server in the client request order.
- <form action=”submit.php” method=”post”>
- Form enctype – This indicates how user input data will be read or encoded.
- application/x-www-form-urlencoded (default) – Encodes user input form data to be read in key value order.
- multipart/form-data – Here you can upload form file data to the desired server location.
- form text/plain – This encodes user input form digital data information as plain text.
- <form action=”submit.php” method=”post” enctype=”multipart/form-data”>
Example of a form in an HTML5 web page.
<form action=”/submit” method=”post”>
<! — Write desire form control here –>
</form>
HTML5 <input> tag.
The <input> tag is used to add or input multiple types of form input controls in HTML5 web pages, such as text input field type, user checkbox selection, multiple radio button selection choices, and many other types of form user input control choices available to the Internet user.
HTML5 Input Attributes.
- Form input type – Here you define the default type of input form controls in the form.
- Input text type – Creates a single-line text-based input form field in the form.
- Input password type – Allows the existing form to input a password field and asks the user to input password text in a unique format.
- Input email type – Creates an email address holder input form control in an HTML5 web page.
- Input checkbox type – Creates a checkbox input form control in an HTML5 web page.
- Input radio type – Creates a radio button form control in an HTML5 web page.
- Input submit button – Creates a submit form button in an HTML5 web page.
- Input file dialog – Provides a user file selection dialog in an existing HTML5 web page.
- <input type=”text” name=”Visitorname” placeholder=”Put Your Name”>
- Input name – Defines the form control name, which is used when submitting the form.
- Input value – Defines the user-entered form input field value.
- Input placeholder – Provides a description along with the input field in an existing HTML5 web page.
- <input type=”text” name=”Visitorname” placeholder=”Put Your Name”>
Form input control example in HTML5.
<input type=”text” name=”Visitorname” placeholder=”Put Your Name”>
<input type=”submit” value=”Submit”>
HTML5 <textarea> tag.
The <textarea> tag in HTML5 web page is used to enter or input single line to multi line text value input from the internet user, it can be used as user detail message description, user feedback, or user comment in online form.
HTML5 <textarea> tag attributes.
- TextArea rows attributes – Indicates the number of visible form rows in the current HTML5 form.
- TextArea columns attributes – Indicates the character width limit of the visible form text area in the current HTML5 form.
- TextArea placeholder attributes – Adds a control description to the visible text area form input control in the current HTML5 form.
Example of <textarea> tag in HTML5.
<textarea name=”Description” rows=”7″ cols=”70″ placeholder=”Put Description Your Here “></textarea>
HTML5 <button> tag.
The <button> tag element is used in HTML5 web pages to send or upload user-filled digital information in an existing form to a dedicated web server location, perform a user action, such as an OK button, cancel button, submit button, or reset button, etc. Creating a button in an HTML5 form creates a clickable form button, and to activate this form button, you must trigger a JavaScript programming function code.
HTML5 <button> tag attributes.
- Button type – Indicates the behaviour of an existing form button in an HTML5 web page.
- Submit button – Submits user data input into a form in an HTML5 web page to an online dedicated web server storage location.
- Reset button – Resets form fields in an existing HTML5 web page to their default values, and discards user-filled values.
- Button – Button is an ordinary form action button control in the current HTML5 web page, which is triggered using JavaScript programming.
- Button name – Defines the name of the button form control used in the HTML5 web page.
- Button value – Indicates the current button values in the HTML5 web page.
HTML5 <button> tag example.
<button type=”submit”>Submit</button>
<button type=”button” onclick=”alert (‘Button clicked!’)”>Let Click</button>
HTML5 <select> tag.
The <select> input tag in HTML5 web page is used to create and select multiple dropdown item list item selection in the web page form, which the HTML5 form user can manually select and apply.
HTML5 <select> tag attributes.
- Select tag name attributes – Defines the selection control name in the current form.
- select size attributes – Defines the visible option numbers in the current form select dropdown list item. Make sure to define it, then it will provide you dropdown list selection.
- select multiple attributes – Provides multiple option selection features to the internet user in the current form select list item.
Example of HTML5 <select> tag.
<select name=”language” size=”6″>
<option value=”html”>Html</option>
<option value=”css”>Css</option>
<option value=”javascript”>Javascript</option>
<option value=”python”>Python</option>
<option value=”ruby”>Ruby</option>
<option value=”kotlin”>Kotlin</option>
</select>
HTML5 <label> tag.
The <label> tag element is used in HTML5 web pages to provide a text label or name for multiple form inputs and other form controls used in a form, which makes the form controls placed in the form accessible and better understood and used.
HTML5 <label> tag attributes.
- Label for attributes – Label for attributes relates the form to the part label control by adding label id attributes to the form. Label for attributes in a form process the form in a unique order during execution.
Example of HTML5 <label> tag.
<label for=”visitorname”>Enter name – </label><input type=”text” id=”visitorname” name=”visitorname”>