W3Schools.com

HTML <a> charset Attribute

HTML a Tag Reference HTML <a> tag

Example

Use of the charset attribute in a link:

<a charset="UTF-8" href="http://www.w3schools.com">www.W3Schools.com</a>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The charset attribute is not supported in any of the major browsers.


Definition and Usage

The charset attribute specifies the character-set of the linked document (the document referenced in the href attribute).

The default character-set for modern browsers is ISO-8859-1.


Syntax

<a charset="value">

Attribute Values

Value Description
character_set The character-set of the linked document.

Common character sets:

  • UTF-8 - Character encoding for Unicode
  • ISO-8859-1 - Character encoding for the Latin alphabet

In theory, any character-set can be used, but no browser understands all of them. The more widely a character-set is used, the better the chance that a browser will understand it.

To view all available character-sets, go to our Character sets reference.



HTML a Tag Reference HTML <a> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE