The script charset attribute.
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The script charset attribute</h1>
<script charset="UTF-8" src="demo_script_charset.js">
</script>
<p>The Greek characters display correctly because they are part of the "UTF-8" character set.</p>
<p>Try changing character sets to "ISO-8859-1" (default), "windows-1252" or "UTF-16".</p>
</body>
</html>
How to Specify the character encoding for the HTML document | HTML Attribute |
How to add An external JavaScript with an UTF-8 character set | HTML Attribute |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |