Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML script charset attribute

HTML

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the charset property.


Definition and Usage

The charset property specifies the character encoding used in the external script file.

The charset property is used when the character encoding in the external script file differs from the encoding in the HTML document.


Tips and Notes

**Note:** The charset property only applies to external scripts (only when the src attribute is used).


Differences between HTML 4.01 and HTML5

none.


Syntax