# HTML charset Attribute
The `charset` attribute of the `` tag was used to specify the character encoding of the linked document.
---
## Deprecation Notice
> β οΈ **Important:** The `charset` attribute on the `` element is **deprecated in HTML5** and is no longer supported by modern web browsers. It should not be used in modern web development.
---
## Definition and Usage
Historically, the `charset` attribute was used to inform the browser about the character encoding of an external resource (such as an external stylesheet or document) linked via the `` element.
In modern web development, character encoding is handled directly by the HTTP headers of the served resource (e.g., `Content-Type: text/css; charset=utf-8`) or via the `` tag within the linked document itself.
---
## Browser Support
| Attribute | Chrome | Edge/IE | Firefox | Safari | Opera |
| :--- | :---: | :---: | :---: | :---: | :---: |
| **charset** | β Not Supported | β Not Supported | β Not Supported | β Not Supported | β Not Supported |
*Note: All major modern browsers have dropped support for this attribute. If included, it will be ignored by the browser.*
---
## Syntax
```html
```
### Attribute Values
| Value | Description |
| :--- | :--- |
| *character_set* | Specifies the character encoding of the linked document.
**Common character sets include:** β’ `UTF-8` - Character encoding for Unicode (recommended) β’ `ISO-8859-1` - Character encoding for the Latin alphabet |
---
## Code Example
In legacy HTML4/XHTML implementations, the attribute was used as follows to link a Japanese document with specific encoding:
```html
```
### Modern Alternative
To ensure proper character encoding in modern web applications, define the character set in the `` of the target document using the `` tag:
```html
Document Title
```