Results 1 to 2 of 2

Thread: How to fix this validation error?

  1. #1
    Join Date
    Nov 2008
    Posts
    43

    How to fix this validation error?

    # Error Line 29, Column 39: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    <div class="popup ie_popup2"><h1><p>MePledge.com's vision is to assist those



    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>").


    im guessing it's *****ing because I have <p> inside of the h1 tag.... not sure though. even if this was it I dont know whats wrong with that.

  2. #2
    Join Date
    Mar 2007
    Location
    Werrington, England
    Posts
    1,315
    Remove the <p> tag.

    <h1> is a html heading. Search engines put emphasis on it to determine your page content.
    <p> is a paragraph.

    You cannot have paragraphs in your headings.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •