/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: formenctype

[this page | pdf | back links]

The HTML formenctype attribute indicates how form-data should be encoded before sending it to a server. It applies to <button> and <input> elements and then only for type = submit or type = image. It overrides the enctype attribute of the <form> element containing the element.

 

Valid attribute values (when used with <button> and <input> elements include:

 

Value

Description

application/x-www-form-urlencoded

(Default). All characters are URL encoded before being sent (with spaces converted to + characters and special characters converted to ASCII Hex values

multipart/form-data

No characters encoded

text/plain

Spaces converted to + characters but no conversion applied to (other) special characters

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile