• Resolved taxgeeks

    (@taxgeeks)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think you forgot to close the <p> ?

    Thread Starter taxgeeks

    (@taxgeeks)

    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?

    Thread Starter taxgeeks

    (@taxgeeks)

    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!

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘html validator error-end tag for p omitted’ is closed to new replies.