Home>Article>Web Front-end> How to set html5 encoding

How to set html5 encoding

藏色散人
藏色散人 Original
2021-04-13 14:22:26 4027browse

html5 encoding setting method: First create an HTML sample file; then enter the "Meta" tag keyword; then enter the "Charset" keyword; and finally set the encoding to "UTF-8".

How to set html5 encoding

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

We first enter the Meta tag keyword.

How to set html5 encoding

Remember that this encoding statement must be in the head tag.

How to set html5 encoding

Then we enter the Charset keyword.

How to set html5 encoding

Next, here is a reference for everyone. Web pages generally have the following encoding.

How to set html5 encoding

However, we recommend using UTF-8, which is generally recognized by the mainstream.

How to set html5 encoding

When we go to test, we will see such a coding prompt.

How to set html5 encoding

【Recommended learning:HTML5 video tutorial

The above is the detailed content of How to set html5 encoding. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn