[HTML5] HTML character code

When writing HTML, specify the HTML character code with the meta tag.

You can specify the character code with "meta charset". Write HTML in UTF-8, and use the meta tag charset to write the character code UTF-8, which is the de facto standard for the Web.

<meta charset = "UTF-8">

How do you specify the JavaScript character code?

When loading JavaScript, the JavaScript character code is considered to be the same as the HTML character code. Therefore, there is no need to specify it specially.

Does CSS need to specify the character code?

Yes. Please refer to the following articles for the character code of CSS.

Style sheet (CSS) character code

Associated Information