The enctype attribute
The enctype
attribute specifies how to encode the HTML form information.
The attribute applies to the form
tag and is optional.
Values
Meaning | Description |
---|---|
application/x-www-form-urlencoded |
Instead of spaces, put +,
Russian letters are encoded by their hexadecimal values (for example, %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 instead of "Hello" ). This operation is called url encoding. This value is the default.
|
multipart/form-data |
The data is not encoded. This value should be set to the form tag when submitting files. That is, if the form contains at least one input tag with the type attribute set to file .
|
text/plain |
Spaces are replaced by the + sign, letters and other symbols are not encoded. |