Abbreviation of HTML DOCTYPE

Abbreviation of HTML DOCTYPE
If your DOCTYPE is as follows:

Copy code
The code 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:

Copy code
The code is as follows:

<!DOCTYPE HTML>

Simple and easy to remember, so you don’t need to copy it later. BTW, I want to try it out.

Copy code
The code is as follows:

<!DOCTYPE XHTML>

, but it failed and the page became "mixed mode". If you have any other tips, please feel free to provide them.

<<:  How to draw special graphics in CSS

>>:  Delete the image operation of none in docker images

Recommend

Understanding of CSS selector weight (personal test)

Copy code The code is as follows: <style type=...

Node.js makes a simple crawler case tutorial

Preparation First, you need to download nodejs, w...

Detailed explanation of the execution plan explain command example in MySQL

Preface The explain command is the primary way to...

Detailed explanation of deploying MySQL using Docker (data persistence)

This article briefly describes how to use Docker ...

mysql server is running with the --skip-grant-tables option

The MySQL server is running with the --skip-grant...

Linux nohup to run programs in the background and view them (nohup and &)

1. Background execution Generally, programs on Li...

Detailed explanation of filters and directives in Vue

Table of contents vue custom directive Global Dir...

Vue integrates PDF.js to implement PDF preview and add watermark steps

Table of contents Achieve results Available plugi...

Vue implements horizontal scrolling of marquee style text

This article shares the specific code for Vue to ...

Use CSS to create 3D photo wall effect

Use CSS to create a 3D photo wall. The specific c...

How to implement controllable dotted line with CSS

Preface Using css to generate dotted lines is a p...