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

HTMLFront End TechnologyWeb Development

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>
raja
Published on 13-Mar-2018 11:30:43
Advertisements