{"id":9373,"date":"2022-10-06T05:10:58","date_gmt":"2022-10-06T05:10:58","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=9373"},"modified":"2022-10-06T05:10:58","modified_gmt":"2022-10-06T05:10:58","slug":"html-accept-charset-attribute","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/10\/06\/html-accept-charset-attribute\/","title":{"rendered":"HTML accept-charset Attribute"},"content":{"rendered":"\n<p>The HTML&nbsp;accept-charset&nbsp;attribute specifies the character encoding that must be used for the form submission.<\/p>\n\n\n\n<p>You can use this attribute only on the\u00a0&lt;form>\u00a0element.<\/p>\n\n\n\n<p>The attribute value contains a list separated value of one or more encodings. The default value of the attribute is \u201cUNKNOWN\u201d, which indicates that the encoding equals the encoding of the document having the &lt;form&gt; element.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"syntax-2\">Syntax<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;form accept-charset=\"character_set\"&gt;&lt;\/form&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-span-class-attribute-accept-charset-span-attribute-4\">Example of the HTML&nbsp;accept-charset&nbsp;attribute:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n    &lt;style&gt;\n      input {\n        display: block;\n        margin-bottom: 10px;\n      }\n    &lt;\/style&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;form action=\"\/form\/submit\" accept-charset=\"ISO-8859-1\" method=\"post\"&gt;\n      &lt;input type=\"text\" name=\"name\" placeholder=\"Enter your Name\"&gt;\n      &lt;input type=\"text\" name=\"surname\" placeholder=\"Enter your Surname\"&gt;\n      &lt;input type=\"number\" name=\"age\" placeholder=\"Enter your Age\"&gt;\n      &lt;input type=\"submit\" value=\"Send\"&gt;\n    &lt;\/form&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The HTML&nbsp;accept-charset&nbsp;attribute specifies the character encoding that must be used for the form submission. You can use this attribute only on the\u00a0&lt;form>\u00a0element. The attribute value contains a list separated value of one or more encodings. The default value of the attribute is \u201cUNKNOWN\u201d, which indicates that the encoding equals the encoding of the document having [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[327],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9373"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=9373"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9373\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=9373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=9373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=9373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}