• Resolved petekkia

    (@petekkia)


    Hi there,
    in recent weeks I’m trying to make compatible my blog with W3 XHTML validator. It started reporting 89 errors, and change after change, I decreased them to 4 and 1 warning. But now I really don’t now what to do, because i don’t understand where i must look for them, either plugins or WP code or articles’ html.

    Now the errors are:

    The website is https://www.leoclubrc.it (the source code is still the one not validatable).

    #  Error  Line 615, Column 26: end tag for "body" omitted, but OMITTAG NO was specified
    
    <!-- End Shadowbox JS …
    
    ?
    
    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 50: start tag was here
    
    ><body>
    
    # Error Line 615, Column 26: end tag for "html" omitted, but OMITTAG NO was specified
    
    <!-- End Shadowbox JS …
    
    ?
    
    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 2: start tag was here
    
    ><html xmlns="https://www.w3.org/1999/xhtml">
    
    # Error Line 615, Column 25: XML Parsing Error: Premature end of data in tag body line 50
    
    <!-- End Shadowbox JS -->
    
    ?
    # Error Line 615, Column 25: XML Parsing Error: Premature end of data in tag html line 2
    
    <!-- End Shadowbox JS -->

    Can someone tell me where and what have I to change?
    Thanks!
    Fabrizio.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @mercime

    (@mercime)

    open up your theme’s footer.php and add the following at the very end of the footer.php

    </body>
    </html>

    Thread Starter petekkia

    (@petekkia)

    Wow, thanks! It worked…
    Can I ask you another question? There’s a warning which says:

    Warning Byte-Order Mark found in UTF-8 File.
    
          The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.

    Do you also know how to fix it?
    Thanks again!

    @mercime

    (@mercime)

    A fix found via Google .. basically use a plain text editor

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘XHTML W3 Validator’ is closed to new replies.