WordPress.org

Ready to get started?Download WordPress

Forums

Validation issue (3 posts)

  1. CognitiveCombine
    Member
    Posted 6 years ago #

    Hi everyone,

    I thought I would check the validation of the theme I just created and I have the following error:

    document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag

    Which seems to refer to this:


    <div id="nav" class="links">

    • <?php wp_list_pages('title_li=' ); ?>

    </div>

    Anyone have any idea what the issue could be?

    Link:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.cognitivecombine.com%2F&charset=%28detect+automatically%29&doctype=Inline&outline=1&group=0&verbose=1

    Thanks.

  2. Len
    Member
    Posted 6 years ago #

    The Validator indicates the lines the errors occurred. Take a look at your source code - you're nesting list items incorrectly.

    <li><li class="...."></li>
     <li class="...."></li>
     </li>
  3. CognitiveCombine
    Member
    Posted 6 years ago #

    Ah yes thanks, fixed.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.