The webpage cannot be opened because the div element lacks a closing tag

The webpage cannot be opened because the div element lacks a closing tag
At first I thought it was a speed issue, so I later connected all image link requests to the site instead of cross-site connections, but the problem still persisted.

But what is puzzling is that with the same set of codes, other pages can open normally, why is there a problem with this page?

Finally, the only way to troubleshoot is to check the code. Code checking is a very difficult task because the code is not written in a standard way and is densely packed.

Start checking from top to bottom, deleting each piece one by one, and checking each time to see if the webpage can be opened normally. . .

Later, a div tag gave me inspiration, as shown below:

A warning wave appears at a certain div. Move the mouse over it and a text prompt appears: Validation (XHTML 1.0 Transitional): Element "div" is missing a closing tag .

This is where the undisplayable part starts!

I then added the closing tag </div> at the appropriate location.

Check the webpage opening status again, it is finally normal!

postscript

From my case, I thought of many similar web pages, where the upper part of the web page opens very quickly, but the lower part, especially the main text, takes a few seconds to open. In most cases, I won't wait any longer, because I can use the waiting time to click on another record in the search results to open another web page. What's more, I don't know what the result of waiting will be.

Although there are many factors that affect the speed of web page opening, I think the most critical and important one is the web page code itself. If improving bandwidth and hardware is not practical, why not optimize it in the web page code?

<<:  Detailed explanation of fetch network request encapsulation example

>>:  CSS to achieve the small sharp corner effect of bubbles

Recommend

Detailed examples of using JavaScript event delegation (proxy)

Table of contents Introduction Example: Event del...

Use and understanding of MySQL triggers

Table of contents 1. What is a trigger? 2. Create...

After docker run, the status is always Exited

add -it docker run -it -name test -d nginx:latest...

Solution to Ubuntu cannot connect to the network

Effective solution for Ubuntu in virtual machine ...

MySQL multi-instance installation boot auto-start service configuration process

1.MySQL multiple instances MySQL multi-instance m...

Rainbow button style made with CSS3

Result: Implementation code: html <div class=&...

Practical tutorial on modifying MySQL character set

Preface: In MySQL, the system supports many chara...

Detailed example of MySQL data storage process parameters

There are three types of MySQL stored procedure p...

Solutions to MySQL OOM (memory overflow)

OOM stands for "Out Of Memory", which m...

Detailed explanation of how to detect and prevent JavaScript infinite loops

Table of contents Preface Fix infinite loop in fo...

Detailed explanation of MLSQL compile-time permission control example

Preface The simple understanding of MySQL permiss...

Detailed explanation of MySQL redo log (redo log) and rollback log (undo logo)

Preface: The previous article described several c...

What kinds of MYSQL connection queries do you know?

Preface If the query information comes from multi...

Beginners learn some HTML tags (3)

Beginners who are exposed to HTML learn some HTML...

How to build lnmp environment in docker

Create a project directory mkdir php Create the f...