HTML form Tag accept-charset Attribute Tutorial

In this section, we will learn what the accept-charset attribute is and how to use it.

What is accept-charset Attribute in HTML <form> Tag?

The accept-charset attribute is used to set the character encoding that should be used when encoding the characters of the form data.

Check this article which is related to Character Encoding if you don’t know what they are.

HTML accept-charset Attribute in <form> Tag Syntax:

<form accept-charset = “character-encoding”> </form>

<form> Tag accept-charset Attribute Values

The value we set for this accept-charset attribute is one of the character-encoding standards.

You can check the list of standard character-encoding here.  

Example: using accept-charset attribute in HTML <form> tag

See the Pen using accept-charset attribute in HTML <form> tag by Omid Dehghan (@odchan1) on CodePen.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies