Forums

[resolved] I have 15 errors and no idea how to fix any of them? (4 posts)

  1. brittanywigand
    Member
    Posted 2 years ago #

    http://validator.w3.org/check?uri=http%3A%2F%2Fbrittanywigand.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&No200=1&user-agent=W3C_Validator%2F1.654

    So I checked my site on validator... because people were telling me my site looks horrible on their ends. But I can't find where to fix any of these errors in my php or css files.

    Also, I'm not even sure if this is all what's causing my site to look weird on other people's computers...

  2. Peter Boosten
    Member
    Posted 2 years ago #

    Line 22, Column 30: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

    You've got a <div> inside the <h1>, that's not allowed. Try the other way around:

    <div id="...">
      <h1>..</h1>
    </div>

    Line 54, Column 13: end tag for "br" omitted, but OMITTAG NO was specified

    the <br /> tag has no closing tag. Replace by <br />

    Line 96, Column 115: required attribute "alt" not specified

    Specify an alt="..." in your <img> tag

    Line 96, Column 119: end tag for "img" omitted, but OMITTAG NO was specified

    related to the previous error

    You have no closing <body> (</body>) and <html> (</html>) tags, add them to your footer

    Peter

  3. songdogtech
    Member
    Posted 2 years ago #

    Try the two most important errors first:

    The missing body and html tags will "whack" your page in some browsers; look in the footer.php; the very bottom of the file should look like this:

    <?php wp_footer(); ?>
    </body>
    </html>

    "You've got a <div> inside the <h1>, that's not allowed. Try the other way around:"

    That error is in header.php

  4. brittanywigand
    Member
    Posted 2 years ago #

    The bottom of the footer.php has that in it songdogtech, & I fixed the error in header.php. I don't know where the other errors are occurring... I wouldn't of known that error was in header.php if you hadn't told me. Help?!

Topic Closed

This topic has been closed to new replies.

About this Topic