Does XHTML 1.0 Strict allow nested lists?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jordan Bradford

    Does XHTML 1.0 Strict allow nested lists?

    I tried validating a page with nested <ul>'s and it's complaining. I haven't
    found any specific documentation in the standard that says you can't, but
    maybe it's there and I'm not seeing it.

    Otherwise, my page must have a syntax error somewhere I haven't yet found.

    I also thought of something that might work. Is it acceptable to make a list
    part of a list item? Such as <ul><li><ul> . . . </ul></li></ul> Will that
    even render?

    Thanks a lot,
    Jordan Bradford


  • Mark Parnell

    #2
    Re: Does XHTML 1.0 Strict allow nested lists?

    Sometime around Thu, 2 Oct 2003 23:29:14 -0500, Jordan Bradford is reported
    to have stated:
    [color=blue]
    > I tried validating a page with nested <ul>'s and it's complaining. I haven't[/color]

    Then you mustn't have nested them properly. :-)
    [color=blue]
    > found any specific documentation in the standard that says you can't, but
    > maybe it's there and I'm not seeing it.
    >[/color]


    [color=blue]
    > Otherwise, my page must have a syntax error somewhere I haven't yet found.
    >[/color]

    See above re: not nesting them properly. :-)
    [color=blue]
    > I also thought of something that might work. Is it acceptable to make a list
    > part of a list item? Such as <ul><li><ul> . . . </ul></li></ul> Will that
    > even render?
    >[/color]

    Yes. That is the correct way to do it.

    --
    Mark Parnell

    Comment

    Working...