Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML form accept-charset Attribute

HTML
The accept-charset attribute

HTML form Tag Reference HTML Tag

Example

A form with the accept-charset attribute:

  First name:

  Last name:

 

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the accept-charset attribute.


Definition and Usage

The accept-charset attribute specifies the character encoding to be used when the form is submitted.

The default value is the reserved string "UNKNOWN" (meaning the encoding is that of the document containing

the element).


Differences between HTML 4.01 and HTML5

In HTML 4.01, the list of character encodings can be separated by spaces or commas. In HTML5, the list must be separated by spaces.


Syntax

Character encoding reference manual.

|

HTML form Tag Reference HTML tag