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

mysql installer community 8.0.12.0 installation graphic tutorial

This tutorial shares the installation of mysql in...

CSS writing format, detailed explanation of the basic structure of a mobile page

1. CSS writing format 1. Inline styles You can wr...

What to do if you forget the initial password when installing MySQL on Mac

Forgetting the password is a headache. What shoul...

Summary of 4 ways to add users to groups in Linux

Preface Linux groups are organizational units use...

Implementation idea of ​​left alignment of the last row of flex box layout

Using flex layout, if it is a nine-square grid, i...

JavaScript operation element examples

For more information about operating elements, pl...

js and jquery to achieve tab status bar switching effect

Today we will make a simple case, using js and jq...

CentOS 8.0.1905 installs ZABBIX 4.4 version (verified)

Zabbix Server Environment Platform Version: ZABBI...

Detailed explanation of nginx configuration file interpretation

The nginx configuration file is mainly divided in...

How to write the style of CSS3 Tianzi grid list

In many projects, it is necessary to implement th...