/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: enctype

[this page | pdf | back links]

The HTML enctype attribute indicates how form-data should be encoded when submitted to the server. It applies to <form> elements and then only for method = post.

 

Valid attribute values (for <form>) include:

 

Value

Description

application/x-www-form-urlencoded

(Default). Input control names and values are URL encoded. Each name value pair is separated by a ‘&’ and the name is separated from the value by ‘=’ (as per a usual HTML query string)

multipart/form-data

Used for submitting forms that contain files, binary data and other non-ASCII data

text/plain

Obsolete. No encoding is applied (is only retained for old browser compatibility)

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile