HTML Attributes
HTML accept-charset attribute
Specifies the character encoding for form submission. Modern conforming HTML uses UTF-8; normally omit this because UTF-8 is the expected encoding. Applicable elements include: <form>. Check each element’s value rules. For new HTML, the only conforming value is UTF-8 (ASCII case-insensitive). Historical browser recognition of the attribute is not evidence that arbitrary character encodings are conforming today.
Formal Syntax & Structure
html syntaxhtml
accept-charset="UTF-8"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| accept-charset | UTF-8 | Specifies the character encoding for form submission. Modern conforming HTML uses UTF-8; normally omit this because UTF-8 is the expected encoding. |
Working Example
Example Snippethtml
<form accept-charset="UTF-8"> <label> Name <input name="name"> </label></form>Browser Compatibility
Minimum supported versions across modern rendering engines
Blink (modern)
Chrome
1
Yes
EdgeHTML / Blink
Edge
12
Yes
Gecko
Firefox
1
Yes
WebKit
Safari
3
Yes
Basic attribute support; modern conforming HTML uses UTF-8, not arbitrary historical encodings.
HTML Living Standard