HTML <meta > tekensetkenmerk
Voorbeeld
Specificeer de tekencodering voor het HTML-document:
<head>
<meta charset="UTF-8">
</head>
Definitie en gebruik
Het charset
attribuut specificeert de tekencodering voor het HTML-document.
De HTML5-specificatie moedigt webontwikkelaars aan om de UTF-8-tekenset te gebruiken, die bijna alle tekens en symbolen ter wereld omvat!
Browserondersteuning
Attribute | |||||
---|---|---|---|---|---|
charset | Yes | Yes | Yes | Yes | Yes |
Syntaxis
<meta charset="character_set">
Attribuutwaarden
Value | Description |
---|---|
character_set | Specifies the character encoding for the HTML document. The HTML5 specification encourages web developers to use the UTF-8 character set! |
❮ HTML <meta>-tag