Easy Tutorial
❮ Att Object Height Html Urlencode ❯

HTML <form> accept-charset Attribute

HTML <form> Tag

Example

A form with the accept-charset attribute:


Browser Support

All major browsers support the accept-charset attribute.


Definition and Usage

The accept-charset attribute specifies the character encoding used for form submission.

The default value is the reserved string "UNKNOWN" (indicating the encoding of the document containing the <form> element).


Differences Between HTML 4.01 and HTML5

In HTML 4.01, the character encoding list could be separated by spaces or commas. In HTML5, the list must be separated by spaces.


Syntax

Attribute Values

Value Description
character_set A list of character encodings used for form submission, separated by spaces. Common values: UTF-8 - Unicode character encoding<br>ISO-8859-1 - Character encoding for the Latin alphabet Theoretically, any character encoding can be used, but no browser understands all encodings. The more widely a character encoding is used, the better the browser support. To see all available character encodings, visit our Character Encoding Reference.

❮ Att Object Height Html Urlencode ❯