![]() |
Definition and UsageThe 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 toThe accept-charset attribute can be used on the following element:
|
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>
html accept-charset attribute |
How to set A form with an accept-charset attribute | HTML Attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded: | 3 months ago |
Uploaded by: | Admin |
Views: | 118 |
Reffered: https://www.w3schools.com/tags/att_accept-charset.asp