HTML | <button> formenctype Attribute (original) (raw)

Last Updated : 20 Jul, 2022

The HTML formenctype Attribute is used to specify that the form data should be encoded when submitting to the server. This attribute will override the feature of the formencrypt attribute. It can only be used with the Button type= "submit".

Syntax:

Attribute value: This attribute contains three value which are listed below:

Example: This Example illustrates the use of enctype attribute in element.

HTML `

Button Formenctype attribute

GeeksforGeeks

HTML Button Formenctype Attribute

First name:

Last name:

Address:

submit without character encoding

submit with character encoding

`

Output:

Supported Browsers: The browsers supported by HTML formenctype attribute are listed below: