Latest

recent

HTML a charset Attribute

Example

Use of the charset attribute in a link:
<a charset="UTF-8" href="http://www.1000sourcecodes.com">Visit 1000sourcecodes.com!</a>

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

<a charset="ISO-8859-1">

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.
HTML a charset Attribute Reviewed by 1000sourcecodes on 09:37 Rating: 5
Powered by Blogger.