![]() |
VOOZH | about |
The HTML <link> element's charset attribute specifies the character encoding for the linked resource, typically for external stylesheets or scripts. It was primarily used with links to external files, but it's now obsolete and rarely needed as encoding is usually specified directly in the file itself or through HTTP headers.
<link charset="character_set">It contains a single value character_set which specifies the character encoding for the HTML document. The values of character_set are:
Example: In this example the charset attribute in the HTML <link> element specifies the character encoding (e.g., ISO-8859-1) for the linked resource.
Output:
👁 ImageThe browser supported by HTML <link> charset attribute are listed below: