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

Recommend

The DOCTYPE mode selection mechanism of well-known browsers

Document Scope This article covers mode switching...

Summary of MySQL lock knowledge points

The concept of lock ①. Lock, in real life, is a t...

Nginx defines domain name access method

I'm building Nginx recently, but I can't ...

Using Apache ab to perform http performance testing

Mac comes with Apache environment Open Terminal a...

Implementation of one-click TLS encryption for docker remote api

Table of contents 1. Change the 2375 port of Dock...

Use of environment variables in Docker and solutions to common problems

Preface Docker can configure environment variable...

Boundary and range description of between in mysql

mysql between boundary range The range of between...

SQL Practice Exercise: Online Mall Database Product Category Data Operation

Online shopping mall database-product category da...

Docker private warehouse harbor construction process

1. Preparation 1.1 harbor download harbor downloa...

MySQL select results to perform update example tutorial

1. Single table query -> update UPDATE table_n...

Solve the problem of PhPStudy MySQL startup failure under Windows system

Report an error The Apache\Nginx service started ...

Practice using Golang to play with Docker API

Table of contents Installing the SDK Managing loc...

Win2008 Server Security Check Steps Guide (Daily Maintenance Instructions)

The document has been written for a while, but I ...

Two methods to implement Mysql remote connection configuration

Two methods to implement Mysql remote connection ...