![]() |
VOOZH | about |
The enctype attribute in HTML specifies how form data should be encoded before being sent to the server. It is mainly used with the <form> tag when submitting form data using the POST method.
Syntax:
<form enctype="multipart/form-data">
<!-- form elements -->
</form>
This attribute contains three values which are listed below:
The enctype attribute is associated with <form> element only.
Example: Demonstrates the enctype="multipart/form-data" attribute, used for file uploads. It includes fields for first name, last name, and address, and a submit button.