• I’m trying to solve this validation error:

    # Error Line 106, Column 7: 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 48: start tag was here

    ><div class=”container”>

    I’m not sure i understand what the problem is. I assume it has to do with the “# Info” message regarding the “container”. But I’ve verified all divs and all are closed.

    The actual code from header.php is:

    </head>
    
    <body> 
    
    <div class="container">
    <div class="container-inner">
    
    <!-- Begin Masthead -->

    Not sure if the Info message complains about having ><div class=”container”> without space between > and <. But as you can see the code doesn’t put <body> right next to <div class=”container”>.

    I’m at a loss here. Can someone please give some pointers what to look for?

    /p

Viewing 1 replies (of 1 total)
  • need to see the whole file to comment on it.

    general, closing tag for a div is </div>
    the container div opened in header.php might need to be closed in footer.php, for instance.
    try to figure out where line 106 of your rendered html code in your browser comes from (that is what the validation checks).

Viewing 1 replies (of 1 total)

The topic ‘Trying to solve a markup validation error that is driving me nuts’ is closed to new replies.