What is the difference between enctype and formenctype in HTML5?
P粉190883225
P粉190883225 2024-04-02 11:47:56
0
1
518

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.

P粉190883225
P粉190883225

reply all(1)
P粉488464731

The

enctype attribute appears on the <form> element and sets the default encoding type for that form.

The

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template