HTML Tutorial: DOCTYPE Abbreviation

HTML Tutorial: DOCTYPE Abbreviation

When writing HTML code, the first line should be DOCTYPE, but DOCTYPE is usually very long and people are too lazy to remember it, so they basically just copy what they have written before. But today I learned an abbreviation for DOCTYPE. If your DOCTYPE is as follows.
When writing HTML code, the first line should be DOCTYPE, but DOCTYPE is usually very long and people are too lazy to remember it, so they basically just copy what they have written before. But today I learned an abbreviation for DOCTYPE. If your DOCTYPE is as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
The following abbreviations can be used instead:
<!DOCTYPE HTML>
Simple and easy to remember, so you don’t need to copy it later. BTW, I wanted to learn from this and try <!DOCTYPE XHTML> , but it failed and the page became "mixed mode". If you have any other tips, please feel free to share them.

<<:  Implementation of mounting NFS shared directory in Docker container

>>:  MySQL high concurrency method to generate unique order number

Recommend

Solution to the problem that the InnoDB engine is disabled when MySQL is started

Find the problem Today at work, when copying tabl...

MySQL data aggregation and grouping

We often need to summarize data without actually ...

Eight implementation solutions for cross-domain js front-end

Table of contents 1. jsonp cross-domain 2. docume...

Thoughts on copy_{to, from}_user() in the Linux kernel

Table of contents 1. What is copy_{to,from}_user(...

Learn Vue middleware pipeline in one article

Often when building a SPA, you will need to prote...

JavaScript two pictures to understand the prototype chain

Table of contents 1. Prototype Relationship 2. Pr...

In-depth analysis of HTML table tags and related line break issues

What is a table? Table is an Html table, a carrie...

Detailed explanation of VUE's data proxy and events

Table of contents Review of Object.defineProperty...

How to view the IP address of Linux in VMware virtual machine

1. First, double-click the vmware icon on the com...

MySQL SQL statement analysis and query optimization detailed explanation

How to obtain SQL statements with performance iss...

Two common solutions to html text overflow display ellipsis characters

Method 1: Use CSS overflow omission to solve The ...

Steps to change mysql character set to UTF8 under Linux system

Table of contents 1. Check the MySQL status in th...

Alibaba Cloud Centos7 installation and configuration of SVN

1. Install SVN server yum install subversion 2. C...

Reasons and solutions for failure to insert emoji expressions in MySQL

Failure Scenario When calling JDBC to insert emoj...

Use HTML and CSS to create your own warm man "Dabai"

The final result is like this, isn’t it cute… PS:...