Affiliate link

HTML - Forms

HTML Forms are used to get data from user input and send to server for processing.

HTML - Basic Forms Attributes

AttributesDescriptionType
acceptContent types that server accepts.Global
actionThe server API URL to submit the form for processing.Form
autocompleteEnable/disable autocomplete on input elements.Global
enctypeThe encoding type of the form.Form
methodHTTP Methods for server API. Examples GET, POST, PUT, DELETE.Form
nameThe name of the form.Global
novalidateUsed to disable form validation.Form
targetTarget 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
Advertisment
StudioPress
Fiverr
Get Surfshark VPN
rocket.net