I'm just wondering what's the difference between the attributes enctype
and formenctype
in HTML Living Standard (aka the new HTML5 specification)? I've been reading the HTML Standard for Developers and still can't seem to see any real difference between the two.
The
Theenctype
attribute appears on the<form>
element and sets the default encoding type for that form.formenctype
attribute appears on submit buttons (such as the<button>
element) and overrides the form's encoding when the submit button is used to trigger form submission.