HTML <meta> charset Attribute Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The HTML <meta> charset attribute specifies the character encoding for the HTML document. It ensures that the browser correctly interprets the characters and symbols on the webpage, commonly set as UTF-8 for universal character support across languages and symbols. Syntax<meta charset="character_set">Attribute Values: It contains the value i.e. character_set which specifies the character encoding for the HTML document.Values: UTF-8: It specifies the character encoding for Unicode.ISO-8859-1: It specify the character encoding for the Latin alphabet. Example: In this example we sets the page's character encoding to UTF-8 using the <meta charset="UTF-8"> tag, ensuring correct character interpretation. The page includes a centered heading and discusses the charset attribute. html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML meta charset attribute</title> <style> #nav { background-color: #187446; margin: 0px; overflow: hidden; } #nav ul { list-style-type: none; margin: 0px; float: left; } #nav li { display: inline; float: left; padding: 15px 10px; } #nav a { color: white; font-family: Helvetica, Arial, sans-serif; text-decoration: none; } a { position: relative; } #nav a:after { content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; right: -10px; } #nav li:hover { background-color: lightgreen; } #nav a:hover { color: black; } </style> </head> <body> <div id="nav"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Data Structure</a></li> <li><a href="#">Algorithm</a></li> <li><a href="#">Web Technology</a></li> </ul> </div> </body> </html> Output:Supported Browsers: The browser supported by HTML <meta> Charset Attributeare listed below: Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML | char Attribute M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML <a> charset Attribute HTML <a> charset attribute specifies the character encoding for an external resource linked with the HTML anchor element. It ensures proper interpretation of text by defining the character set used in the linked resource.Note: It is not supported by HTML5.Syntax:<a charset="value">Attrib 1 min read HTML <a> charset Attribute HTML <a> charset attribute specifies the character encoding for an external resource linked with the HTML anchor element. It ensures proper interpretation of text by defining the character set used in the linked resource.Note: It is not supported by HTML5.Syntax:<a charset="value">Attrib 1 min read HTML <a> charset Attribute HTML <a> charset attribute specifies the character encoding for an external resource linked with the HTML anchor element. It ensures proper interpretation of text by defining the character set used in the linked resource.Note: It is not supported by HTML5.Syntax:<a charset="value">Attrib 1 min read HTML | <td> char Attribute The HTML <td> char Attribute is used to specify the alignment to the character of content in a table cell. This attribute only contains char align attribute. Its default value is a decimal point for page language. It is not supported by HTML 5. Syntax: <td char="character"> Attribute Val 1 min read HTML <th> char Attribute The HTML <th> char attribute is used to specify the alignment to the character of content in a table header cell. It only contains the char align attribute. Its default value is a decimal point for page language. Note: It is not supported by HTML5. Syntax: <th char="character"> Attribute 1 min read HTML | <script> charset Attribute The HTML <script>charset Attribute is used to specifies the character encoding used in an external script. Syntax: <script charset="charset"> Note: HTML <script>charset Attribute is not supported by HTML5. Attribute Values: It contains the value charset which specifies the characte 1 min read Like We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy Got It ! Improvement Suggest changes Suggest Changes Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal. Create Improvement Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all. Suggest Changes min 4 words, max Words Limit:1000 Thank You! Your suggestions are valuable to us. What kind of Experience do you want to share? Interview Experiences Admission Experiences Career Journeys Work Experiences Campus Experiences Competitive Exam Experiences