HTML a charset Attribute
HTML <a> tag
Example
Use of the charset attribute in a link:
<a charset="UTF-8" href="http://www.w3schools.com">Visit W3Schools.com!</a>
|
Try it yourself!
|
Definition and Usage
The charset attribute specifies the character encoding of the target URL.
The default character-set for modern browsers is ISO-8859-1.
Syntax
<a charset="character_set">
|
Syntax Example
Attribute Values
Value |
Description |
character_set |
The character encoding of the target URL. Common values:
- UTF-8 - Character encoding for Unicode
- ISO-8859-1 - Character encoding for the Latin alphabet
In theory, any character encoding can be used, but no browser understands all of them. The more widely a
character encoding is used, the better the chance that a browser will understand it.
To view all available character encodings, go to our
Character sets reference.
|
Browser Support

The major browsers do not use the charset attribute in any way.
HTML <a> tag
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|