Nested lists in XHTML?

Whaaat?

Nested lists in XHTML are possible, but you can't just put a list inside another list. You have to nest the nested list in a list item. References: W3Schools XHTML differences and the www-html mailing list.

That's craziness. I'm going to check the spec.

(moments pass)

Huh. Sure enough. That's craziness. That's so in HTML 4.01, too: they don't even have an example of, say, a ul in a ul, except for the one clearly marked deprecated. If this looks OK, I guess user-agents handle it:

  • foo
  • bar
    • baz
     
  • quux
  •  
    • quuux
    • quuuux
    • qu...ux
     
  • b1ff

Comments

comment

Thanks for your help :-)

http://www.findon.com/links/links.htm