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 />

    <meta charset="UTF-8" />


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: 6080 | Post Order: 53

Write for us

Hosting Recommendations