A brief discussion on HTML doctype and encoding

A brief discussion on HTML doctype and encoding

DOCTYPE

Doctype is used to tell the browser which version of HTML to use to parse the 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

reason

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

Solution

The code is saved in the same encoding format as the one used to parse it.

The above brief discussion on HTML doctype and encoding is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

<<:  CSS3 filter code to achieve gray or black mode on web pages

>>:  Common writing examples for MySQL and Oracle batch insert SQL

Blog    

Recommend

How to implement the jQuery carousel function

This article shares the implementation code of jQ...

Vue implements sending emoticons in chat box

The specific code for sending emoticons in the vu...

Vue+js click arrow to switch pictures

This article example shares the specific code of ...

Nginx/Httpd reverse proxy tomcat configuration tutorial

In the previous blog, we learned about the usage ...

MYSQL 5.6 Deployment and monitoring of slave replication

MYSQL 5.6 Deployment and monitoring of slave repl...

How to implement distributed transactions in MySQL XA

Table of contents Preface XA Protocol How to impl...

Windows Server 2008 Tutorial on Monitoring Server Performance

Next, we will learn how to monitor server perform...

Tutorial on installing MySQL8 compressed package version on Win10

1 Download MySQL8 from the official website and i...

User Experience Summary

Nowadays, whether you are working on software or w...

Secondary encapsulation of element el-table table (with table height adaptation)

Preface During my internship at the company, I us...

How to install phabricator using Docker

I am using the Ubuntu 16.04 system here. Installa...

MySQL 5.6.27 Installation Tutorial under Linux

This article shares the installation tutorial of ...