Home > Web Front-end > HTML Tutorial > A brief discussion on HTML doctype and encoding

A brief discussion on HTML doctype and encoding

高洛峰
Release: 2017-02-11 14:21:26
Original
1187 people have browsed it

DOCTYPE

Doctype is to tell the browser which version of html to use to parse instructions. It must be on the first line. In some versions, DTD needs to be introduced. HTML5 does not need to introduce DTD

Chinese garbled characters

Cause

The encoding format of the browser parsing code is inconsistent with the source code encoding format. For example, if the document is saved as GBK, garbled characters will appear

Solution

Whichever format is used to parse, whichever encoding format is used to save the code.

The above article briefly discussing HTML doctype and encoding is all the content shared by the editor. I hope it can give you a reference, and I also hope that everyone will support the PHP Chinese website.

For more articles related to the doctype and encoding of HTML, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template