The charset attribute on a meta tag specifies to the browser what character encoding to use for the page. HTML tag -- the best examples. Examples Version: 22.9 Feel free to make your own experiments: MySectionName.one.zip (4.7 KB) Original OneNote Page Please, have look at the red rectangle place SCR-20221103-e84.png (28.5 KB) Converted OneNote Page (HMTL) Title is located in the incorrect place - must be in title tag Date is located in the incorrect place - must be in meta tag . This is a character encoding declaration. It specifies the character encoding for the HTML document. specification encourages web developers to use the UTF-8 character set. How to set the default value for an HTML element ? This rule checks that the meta element is not used for delayed redirecting or refreshing.. Applicability. 4. Supported Browsers: The browser supported by HTML Charset Attribute are listed below: Writing code in comment? Value A string. Different charsets include ASCII, ANSI, ISO-8859-1, UTF-8, etc. The charset attribute of the element is used to specify the character encoding for the HTML document. For additional details about Charsets see our HTML Charset Reference. utf-8 is a universal character set that includes almost every character from all human languages. Consider moving it to the beginning of the <head> section, as in this example: <head> <meta charset="utf-8"> . How to convert a string into number in PHP? The charset attribute of the <meta> element is used to specify the character encoding for the HTML document. the data about data and charset specifies character encoding. A-143, 9th Floor, Sovereign Corporate Tower, We use cookies to ensure you have the best browsing experience on our website. For more details, see Character encodings in HTML . The charset meta tag is a tag that allows you to define specific character encoding for your page. We are going to use the Meta tag, and . Example: This Example illustrates the use of charset Attribute in Meta Element. The http-equiv attribute The http-equiv attribute defines pragma directives that can alter servers and user-agents behavior. A-143, 9th Floor, Sovereign Corporate Tower, We use cookies to ensure you have the best browsing experience on our website. This tag is an empty element and so does not have a closing tag but it carries information within its attributes. Agree acknowledge that you have read and understood our, GATE CS Original Papers and Official Keys, ISRO CS Original Papers and Official Keys, ISRO CS Syllabus for Scientist/Engineer Exam, Tracxn Experienced Interview (3yrs SSE post). With the name attribute The element provides document-level metadata organized in name-value pairs. A "charset" attribute on a "meta" element found after the first 1024 bytes. You can use the charset attribute on as well as