Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6006547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:33:17+00:00 2026-05-23T01:33:17+00:00

A unclosed div problem almost make me crazy. It is very difficult to track

  • 0

A unclosed div problem almost make me crazy. It is very difficult to track especially when the page is long and complex.

<div>
   <span>
       <b>Text</b>
       <a href="/">Title <span>another test</span>
   </span>
</div>

How can I find unclosed HTML-tags on a website?

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:33:18+00:00Added an answer on May 23, 2026 at 1:33 am

    As stated already, running your code through the W3C Validator is great but if your page is complex, you still may not know exactly where to find the open div.

    I like using tabs to indent my code. It keeps it visually organized so that these issues are easier to find, children, siblings, parents, etc… they’ll appear more obvious.

    EDIT: Also, I’ll use a few HTML comments to mark closing tags in the complex areas. I keep these to a minimum for neatness.

    <body>
    
        <div>
            Main Content
    
            <div>
                Div #1 content
    
                <div>
                   Child of div #1
    
                   <div>
                       Child of child of div #1
                   </div><!--// close of child of child of div #1 //-->
                </div><!--// close of child of div #1 //-->
            </div><!--// close of div #1 //-->
    
            <div>
                Div #2 content
            </div>
    
            <div>
                Div #3 content
            </div>
    
        </div><!--// close of Main Content div //-->
    
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any add-ons (plug-ins) for Firefox to find unclosed HTML elements? Example: <div>
I know this error is usually a problem with unclosed quotes and such, but
I have text area on my page. In that area I have to add
i can not delete this lines from DB becouse of Unclosed quotation marks. How
I wanted to open a https connection and keep it unclosed. I will be
I'm taking html content out of my database and displaying it on a page.
How can I get all the unclosed tags in a given string, prefferably in
My clients hosting provider blocks the site because of too much unclosed mysql connections.
Whatever is inside finally blocks is executed (almost) always, so what's the difference between
Amazingly, the title basically explains it. We have a page that our client made

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.