HTML Attributes

HTML accept-charset attribute

Build a form with the HTML form generator

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

NameTypeDescription
accept-charsetUTF-8Specifies 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
HTML Reference