Horje
HTML accept-charset Attribute

Definition and Usage

The accept-charset attribute specifies the character encodings that are to be used for the form submission.

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


Applies to

The accept-charset attribute can be used on the following element:

Element Attribute
<form> accept-charset

How to set A form with an accept-charset attribute

The form accept-charset attribute
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The form accept-charset attribute</h1>

<form action="/action_page.php" accept-charset="utf-8">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <input type="submit" value="Submit">
</form>

</body>
</html>

Output should be:

How to set A form with an accept-charset attribute




html accept-charset attribute

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference