encType attribute (form)
Sets how form data should be encoded for submitting to the server.
You need to set this attribute value to 'multipart/form-data' if the form you want to submit to the server contains an input:file element.
String that sets the type of encoding.
The following values must be supported by browsers:
|If the form contains text data only, this value can be used.|
|If the form contains files (see input:file) or binary data, this value must be used.|
Example HTML code 1:
This example illustrates the use of the encType attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments