Advertisement
Home Open Editor ❯

HTML <form> accept Attribute

Example

<form action="action.php" accept-charset="utf-8">

Try this code ❯

Meaning

accept-charset attribute specifies the list of character encodings for input data that must be accepted by the server processing the form.

The value is a space- or comma-delimited list of character sets as defined in RFC 2045. The default value for this attribute is the reserved value unknown.


Standard Syntax

<form accept-charset="characterSet">


Advertisement

Attribute Values

Value Description
characterSet Space-separated character encodings the server accepts.

Most common values:

  • UTF-8 - Character encoding for Unicode
  • ISO-8859-1 - Character encoding for the Latin alphabet
Home Open Editor ❯
Advertisement