HTML charset property
Example
Specify the character encoding for the HTML document:
Try it »
Browser support





All major browsers support the charset property.
Definition and Usage
The charset attribute specifies the character encoding of the HTML document.
**Tip:** The charset attribute can be overridden by the lang attribute on any element.
Differences between HTML 4.01 and HTML5
The charset attribute is new in HTML5 and replaces:
It is still allowed to use the http-equiv attribute to specify the character set, but using the new method reduces the amount of code.
HTML
tag