By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,648 Members | 1,654 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,648 IT Pros & Developers. It's quick & easy.

WP page error: Error Line : Unclosed element div

P: 3
Greetings, first post and in need of some code error help.
I am ruff at html and .css skill wise. :)

Home Page
Good page w/ proper R-sidebar
Evil page w/ improper R-sidebar.

Error from WC3 checker for evil page:
<div id="wrapper" class="hfeed">
Expand|Select|Wrap|Line Numbers
  1. Error Line 138, Column 32: Unclosed element div.
  2. <div id="wrapper" class="hfeed">
I have tried to get Firefox plugin html val .9.1.0 to help me but it will not validate my page. I have installed and gone to the test page for that tool and it auto detects errors and shows in bottom right of status bar. But nothing shows on my page...

Thanks for any and all help!
Peace and Blessings
Aug 30 '11 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 10K+
P: 12,430
What the error means is that you have a <div> that doesn't have a corresponding </div>
Aug 30 '11 #2

P: 3
Doh, yea. Sorry, I am clear on that. But what I am not clear on is what I need to fix.

In looking at the code I do not see a missing </div> tag. I can not get the HTML Validate tool to work.

Expand|Select|Wrap|Line Numbers
  1. Line 138, Column 32: Unclosed element div. 
  2. <div id="wrapper" class="hfeed">
The only thing I can see is in Bold below and I can not find a corresponding </div id="wrapper" class="hfeed"> if there should be one? However, I don't see it on the other page that works? Looked at it in DreamWeaver as well, and not sure what I should do? Thanks

Expand|Select|Wrap|Line Numbers
  1. <div id="wrapper" class="hfeed">
  2.     <div id="header">
  3.         <div id="masthead">
  4.         <div id="ttw-site-logo"></div>
  5.         <div id="ttw-site-logo-link" onclick="location.href='';" style="cursor:pointer;"></div>
  6.         <div id="site-title" style="display:none;">
  7.             <span>
  8.             <a href="" title="Chalice Children's Books" rel="home">Chalice Children's Books</a>
  9.             </span>
  10.         </div>
  11.         <div id="site-description" style="display:none;">Reading to your Child's Immagination</div>
  12.         <div class="skip-link screen-reader-text"><a href="#content" title="Skip to content">Skip to content</a></div>
  14.         <div id="branding" role="banner">
  15. <!-- Weaver Plus Header Insert -->
  16. <!-- Weaver Plus Custom Header Insert Page ID: 76; -->
  18. <!-- Weaver Plus More Options Insert -->
  19.             <a href="" title="Chalice Children's Books" rel="home">
  20.             <img src="" width="940" height="90" alt="Chalice Children's Books" />
  21. </a>
  22.         </div><!-- #branding -->
  24.     </div><!-- #masthead -->
  25.     </div><!-- #header -->
Aug 30 '11 #3

Expert Mod 100+
P: 2,330
You are missing a closing div, it's at the very end.

Add </div> and it should validate. You have to close div's. That isn't an option.
Aug 30 '11 #4

P: 3
Fixed. Thanks. I was unsure just what to insert? Did I need some </div Wrapper> or something? Now I see that those are just comments. I was not sure if I could just put in any old div close or what?

All working now.
Peace and Blessings!
Aug 31 '11 #5

Post your reply

Sign in to post your reply or Sign up for a free account.