Can someone PLEASE help with one small validation error?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • html illiterate
    New Member
    • Oct 2011
    • 7

    Can someone PLEASE help with one small validation error?

    I cannot seem to figure this last error out. Could someone please let me know what to change?

    Here's the error message:(error is located at the > after -374px">)

    1. Error Line 250, Column 105: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

    …00; POSITION: absolute; WIDTH: 1365px; HEIGHT: 126px; TOP: 23px; LEFT: -374px">

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

    Here's the code in question:

    <div class="Object48 7" style="WIDTH: 605px; HEIGHT: 37px">
    <div align="center"> <table border="0" cellspacing="0" cellpadding="0" >
    <tr><td valign="top" align="center"> <div class="text-align:center;ma rgin-left:0px;text-indent:0px;">
    <span class="textstyl e2"><a href="testimoni als-from-customers.html" >Visit our Testimonials Page<br>
    </a><div style="Z-INDEX: 100; POSITION: absolute; WIDTH: 1365px; HEIGHT: 126px; TOP: 23px; LEFT: -374px">
    See what some of our customers have to to say about our <br>Wood Signs, Address Plaques, and other custom routed products.<br>
    </div></span></div></td></tr></table></div></div></div>

    Thank you for any help you can give me on this, Jeff
    Last edited by html illiterate; Oct 26 '11, 01:11 AM. Reason: adding info
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    You put a div element inside a span. span is an inline container and can only contain inline content, such as text or an img. A div is not inline.

    Comment

    • html illiterate
      New Member
      • Oct 2011
      • 7

      #3
      Thank you dr, I have been trying to make some h2 and h3 headings but get multiple errors every time I try. I have finally given up on the headings as I just don't understand enough about their placement and such. Thanks again, Jeff

      Comment

      Working...