
The HTML accept-charset attribute defines the character encodings that are to be used for the form submission.
The HTML accept-charset attribute can be used on the <form>
element.
Example:
<!DOCTYPE html>
<html>
<body>
<form action="" accept-charset="utf-8">
<label for="first-name">First name:</label>
<input type="text" id="first-name" name="first-name"><br><br>
<input type="submit" value="Send">
</form>
</body>
</html>
Output:
Enjoy coding!
Read also: