WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] html validator error-end tag for p omitted (5 posts)

  1. taxgeeks
    Member
    Posted 4 years ago #

    I have been able to resolve most of the html validator errors, except for the "tag for "p" omitted, but OMITTAG NO was specified." Please note that I use conditional tags ([tag1]This is a fun post.[/tag1]) to insert text in certain posts and it appears that when this is done there is no "end tag for p."

    The validator shows the following 3 errors, but they are all related to the first.

    1. Error Line 183, Column 8: end tag for "p" omitted, but OMITTAG NO was specified

    </div>

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    2. Line 173, Column 4: start tag was here

    <p>This is a fun post.

    3. Line 183, Column 8: Opening and ending tag mismatch: p line 173 and div

    </div>

    *

    Any input is appreciated.

  2. Karine
    Member
    Posted 4 years ago #

    I think you forgot to close the <p> ?

  3. taxgeeks
    Member
    Posted 4 years ago #

    I realize that the </p> is missing, but it is not clear to me how to resolve it. When I add text in a post wordpress adds the <p> (presumably) and when I insert the [tag][/tag] (the text of which is controlled by a plug-in) apparently this causes wordpress not to add the </p>. In contrast, if I write a post without the conditional tags there are no html validator errors.

    It would seem one option would be to add a </p> in the text in the plugin. e.g., [tag]This is a fun post.</p>[/tag]. Although I wouldn't think that this is the appropriate way to resolve this problem.

    Is there a better solution?

  4. taxgeeks
    Member
    Posted 4 years ago #

    i resolved it by moving the desired text from the tag to an area outside of the loop. i.e., post meta custom field.

    the error-free green html validator looks so much better!

  5. mathew123
    Member
    Posted 3 years ago #

    I have a same problem, I am looking at the clean code and it states that I have missed to close </DIV> ....on the home page.

    how to fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic