Affiliate link
HTML - Forms
HTML Forms are used to get data from user input and send to server for processing.
HTML - Basic Forms Attributes
| Attributes | Description | Type |
|---|---|---|
| accept | Content types that server accepts. | Global |
| action | The server API URL to submit the form for processing. | Form |
| autocomplete | Enable/disable autocomplete on input elements. | Global |
| enctype | The encoding type of the form. | Form |
| method | HTTP Methods for server API. Examples GET, POST, PUT, DELETE. | Form |
| name | The name of the form. | Global |
| novalidate | Used to disable form validation. | Form |
| target | Target element to display the response. Less frequently used. | Form |
HTML - Basic Forms Input
These are the basic forms input.
- input
- select
- textarea
<input name="inputName" type="text" />
<select>
<option value="HTML">HTML</option>
<option value="CSS">CSS</option>
</select>
<textarea />Code result
Affiliate link
Affiliate link
Affiliate link






