Support » Fixing WordPress » Validate xhtml and list item tags

  • Resolved montag

    (@montag)


    My site won’t validate apparently because I have used list item tags<li> in my post content. I used the ‘quicktags’ feature to add them. I am getting the following message when I validate: “document type does not allow element ‘li’ here”

    My site is at http://www.stumplane.us/wordpress

    Any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • iand

    (@iand)

    You need to define it as an ordered or unordered list first. i.e.
    <ol>
    <li>something</li>
    </ol>

    or
    <ul>
    <li>something</li>
    </ul>

    montag

    (@montag)

    Thanks! That was fast. I appreciate the help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Validate xhtml and list item tags’ is closed to new replies.