Get the App
SLTechnology News&Howtos  ›  Development  › 

Analysis of the example that the web page cannot be opened due to the lack of closing tag of element div

Shulou Source: shulou.com Published: 2022-06-02 06:43:35 10月04日 Update

The element div lacks the closing tag to make the web page unable to open. I believe that many inexperienced people are at a loss about this. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

At first, I thought it was a problem of speed, but then all the picture link requests were connected to the site, no longer cross-site connection, the problem still exists.

But what is puzzling is that it is normal for other pages to open with the same set of code, so why is there a problem with this page?

In the end, there is only a mistake in terms of code review. Code review is hard work because the code is not standard and dense.

Check from top to bottom, delete piece by piece, and each delete piece to see if the page can be opened properly.

Later, a div tag inspired me, as shown in the following figure:

A warning wave appears at a div, move the mouse over, and there is a text prompt: verification (XHTML 1.0 Transitional): the element "div" lacks a closing tag.

Here, it is precisely the starting position of the part that cannot be displayed!

So I put this end mark in the right place.

Check the opening of the web page again, and it's finally normal!

After reading the above, have you mastered the method of analyzing the example that the element div lacks a closing tag that causes the web page to fail to open? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Problems tags web pages code checks elements examples analysis location content methods more puzzling appropriate helpless for this reason only pictures for this Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Huawei MariaDB Microsoft Redmi