Set the character encodings that are used for form submission in HTML


The accept-charset attribute in HTML is used to include the character encodings for form submission.

Example

You can try to run the following code to implement accept-charset attribute in HTML −

<!DOCTYPE html>
<html>
   <head>
      <title>File Upload Box</title>
   </head>
   <body>
      <form accept-charset = "ISO-8859-1">
         <input type = "file" name = "fileupload" accept = "image/*" />
      </form>
   </body>
</html>

Updated on: 02-Mar-2020

182 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements