HTML5 > Structures

Character Encoding in HTML5

How to specify character encoding in HTML5?


Character encoding differs from language to language and to set the charset in HTML, we can write following <meta> tag under <head> tag.

<!DOCTYPE html />

<html>
<head>
    <title></title>
    <meta charset="UTF-8" />
</head>
<body>

</body>
</html>

Notice that it is pretty simple, just set charset attribute of the <meta> tag to the encoding format we want.

Following are the possible values of the charset.

html meta charset

 Views: 6453 | Post Order: 53



Write for us






Hosting Recommendations