Open In App
Related Articles

HTML | <a> charset Attribute

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
The charset attribute is used to specify the character set of the linked document i.e. the document referenced to the href attribute.

Note: It is not supported by HTML5.

Syntax:
<a charset="value">
Attribute Values: It contains the value charset which specifies the character encoding for the external scripts.
  • “ISO-8859-1”: It is used for the Standard encoding for the Latin alphabet.
  • “UTF-8”: It is used for the Character encoding for Unicode. Compatible with ASCII.
Example:
<!DOCTYPE html>
<html>
  
<head>
    <title>
      HTML a charset Attribute
  </title>
</head>
  
<body>
    <p>Welcome to
        <a charset="UTF-8"
           href="https://ide.geeksforgeeks.org/"
                GeeksforGeeks 
            </a>
    </p>
</body>
  
</html>

                    
Output: Supported Browsers: No browser supports HTML <a> charset attribute.

Last Updated : 16 Mar, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads