Introduction to the role of HTML doctype

Introduction to the role of HTML doctype
Document mode has the following two functions:

1. Tell the browser what HTML or XHTML specification to use to parse HTML documents

2. Affects the browser's rendering mode; different rendering modes will affect the browser's parsing of CSS code and even JavaScript scripts, so Doctype is very critical, especially in the IE series browsers, the rendering mode of the HTML page determined by DOCTYPE is crucial.

Two rendering modes:

BackCompat: Standard compatibility mode is not enabled (also called Quirks mode or promiscuous mode)
CSS1Compat: Standards compatibility mode is enabled (also called strict mode [Standards mode/Strict mode])

<<:  Detailed steps for Spring Boot packaging and uploading to Docker repository

>>:  Vue implements horizontal scrolling of marquee style text

Recommend

Steps to install Pyenv under Deepin

Preface In the past, I always switched Python ver...

Summary of 76 Experience Points of User Experience

Classification of website experience 1. Sensory e...

Detailed explanation of CSS line-height and height

Recently, when I was working on CSS interfaces, I...

MySQL detailed single table add, delete, modify and query CRUD statements

MySQL add, delete, modify and query statements 1....

Vue3.x uses mitt.js for component communication

Table of contents Quick Start How to use Core Pri...

HTML set as homepage and add to favorites_Powernode Java Academy

How to implement the "Set as homepage" ...

How to set up scheduled backup tasks in Linux centos

Implementation Preparation # Need to back up the ...

How to use limit_req_zone in Nginx to limit the access to the same IP

Nginx can use the limit_req_zone directive of the...

How to use async await elegantly in JS

Table of contents jQuery's $.ajax The beginni...

Nginx handles http request implementation process analysis

Nginx first decides which server{} block in the c...

JavaScript Document Object Model DOM

Table of contents 1. JavaScript can change all HT...

Specific use of the autoindex module in the Nginx Http module series

The main function of the brower module is to dete...

How to prevent Vue from flashing in small projects

Summary HTML: element plus v-cloak CSS: [v-cloak]...

MySQL deadlock routine: inconsistent batch insertion order under unique index

Preface The essence of deadlock is resource compe...