This Attribute specifies that data will be present in form should be encoded when submitting to the server. This type of attribute can be used only if method = “POST”.
<form enctype = "value">
Element: The enctype attribute is associated with <form> element only.
Attribute Value: This attribute contains three value which are listed below:
- application/x-www-form-urlencoded: It is the default value. It encodes all the characters before sent to the server. It converts spaces into + symbols and special character into its hex value.
- multipart/form-data: This value does not encode any character.
- text/plain: This value convert spaces into + symbols but special characters are not converted.
Supported Browsers: The browser supported by enctype Attribute are listed below:
- Google Chrome
- Internet Explorer
- Apple Safari
- HTML | <form> enctype Attribute
- HTML | DOM Form enctype Property
- HTML | rel attribute
- HTML | dir Attribute
- HTML src attribute
- HTML | <img> src Attribute
- HTML | min Attribute
- HTML | alt attribute
- HTML | max attribute
- HTML | <li> value Attribute
- HTML | <img> alt Attribute
- HTML | name Attribute
- HTML | <map> name Attribute
- HTML | for Attribute
- HTML | <a> rel Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.