Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

XHTML nested lists

Things I learnt today part one: 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.

This is XHTML nested lists by Simon Willison, posted on 16th July 2002.

View blog reactions

Next: Heated discussion

Previous: EyeDropper

4 comments

  1. This bit me no end when I built aqtree, a little bit of JS which turns nested lists into explorer trees. I was completely unaware that UL elements can contain nothing but LI elements, and I was roundly castigated (well, not too much, but I should have been) on css-discuss and webdesign-L for not knowing. :)

    sil - 16th July 2002 21:41 - #

  2. I had this problem when I rejigged Orient the other day. I had the page looking lovely on my Palm too, and now it has extra dots in various places.

    Paul Freeman - 17th July 2002 08:26 - #

  3. Who woulda thunk it ... I appreciate you writing about this in your blog instead of me having to search around for hours with no solution in sight.

    Wally Atkins - 4th November 2003 14:33 - #

  4. Could you just blog me an example of nested lists some with bullets and the nested ones without a bullet. Thanks

    Tamra - 21st March 2006 22:43 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2002/07/16/xhtmlNestedLists

A django site