WordPress.org

Forums

Help with validation errors (3 posts)

  1. 4k
    Member
    Posted 7 years ago #

    I have this theme almost finished but have on single.php pages the following errors stop validation. I have been at this all day trying to figure it out and just can't. Any ideas?

    d'oh almost forgot url http://www.breadnroses.ca/inprogress/2008/05/hello-world/

    # Error Line 378, Column 6: end tag for "div" omitted, but OMITTAG NO was specified .

    </body>

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    # Info Line 67, Column 0: start tag was here .

    <div id="wrap">

    # Error Line 378, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 67 and body .

    </body>


    # Error Line 380, Column 7: XML Parsing Error: Opening and ending tag mismatch: body line 62 and html .

    </html>


    # Error Line 380, Column 7: XML Parsing Error: Premature end of data in tag html line 2 .

    </html>

  2. Joni
    Member
    Posted 7 years ago #

    You don't have enough </div>s there.
    Here's what I like to do to check myself:

    <div id="wrapper">
    <div id="masthead">Masthead contents</div><!-- /masthead -->
    <div id="main">
    <div id="content">
    <h3 class="storytitle">Title</h3>
    <div class="post">
    Blah blah blah
    </div><!-- /post -->
    </div><!-- /content --?
    <div id="sidebar">
    sidebar contents
    </div><!-- /sidebar -->
    </div><!-- /main -->
    <div class="clearer"></div>
    <div id="footer">
    footer contents
    </div><!-- /footer -->
    </div><!-- /wrapper -->

    This forces me to make sure all the divs are closed. HTH. ;)

  3. 4k
    Member
    Posted 7 years ago #

    I looked and I looked and I didn't see an open div, but I stuck one in anyway and it worked. :) WOOHOO!

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic