Forms & Controls

enctype="application/x-www-form-urlencoded"

Build a form with the HTML form generator

Encodes form fields as URL-encoded name/value pairs, the normal POST encoding. It cannot transmit the contents of uploaded files as multipart file parts. POST form encoding; formenctype may override it. Missing or invalid values default to application/x-www-form-urlencoded. The example requires a server endpoint.

Formal Syntax & Structure

html syntaxhtml
enctype="application/x-www-form-urlencoded"

Parameters & Attributes

NameTypeDescription
enctypekeywordEncodes form fields as URL-encoded name/value pairs, the normal POST encoding. It cannot transmit the contents of uploaded files as multipart file parts.

Working Example

Example Snippethtml
<form method="post" action="/submit" enctype="application/x-www-form-urlencoded">  <label>    Title    <input name="title">  </label>  <button>Submit</button></form>
HTML Reference