Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report