troubleshooting Question

XHTML 1.1 Strict validation fails with <OL> and <UL>

Avatar of abenage
abenage asked on
Web Languages and StandardsHTMLWeb Development Software
7 Comments1 Solution683 ViewsLast Modified:
I am attempting to pass XHTML 1.1 validation, but receive tag error:
document type does not allow element "ul" here; assuming missing "li" start-tag.

My goal is to have <ul> list items appear within th <ol> tag such as

1.Main Item 1
     •Sub Item 1
     •Sub Item 2
     •Sub Item 3
     •Sub Item 4
2.Main Item 2
3.Main Item 3
     •Sub Item 1
     •Sub Item 2
     •Sub Item 3
     •Sub Item 4
     •Sub Item 5
     •Sub Item 6

This is the code I am using:
<ol>
      <li></li>
      <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
      </ul>
      <li></li>
      <li></li>
      <ul>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
      </ul>
</ol>

Is it possible to nest <ul> within <ol> under XHTML 1.1?
Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros