New in HTML5.

<input formenctype="">

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Attribute of
How To Use Input To Create Form Fields In HTML: Easy Tutorial
What does <input formenctype=""> do?
Specifies how form data should be submitted to the server. Only for use on input types "submit" and "image".

Using formenctype

The formenctype attribute overrides the value of enctype, and has the same encoding options.

It is hard to make a good case for using this attribute. Specifying the encoding type at the point of the submit button only makes sense if you are providing multiple submit buttons with different encoding types for each one. However, this puts the choice of form encoding in the hands of the user. But since the encoding type chosen requires different types of processing on the server, it is difficult to see any use cases where this would be desirable.

Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for formenctype

iefirefoxchromeedgesafariopera
11434513934