in reply to Re^3: Directory Tree Structure
in thread Directory Tree Structure

who says that <ul>...</ul> positioned between </li>...<li> is invalid?

W3C Markup Validation Service  :)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > <title></title> </head> <body> <UL> <LI> examples/html: </LI> <UL> <LI> examples/html/bars: </LI> </UL> <LI> examples/ps: </LI> </UL> </body> </html> --- Validation Output: 1 Error Line 11, Column 6: document type does not allow element "UL" here; ass +uming missing "LI" start-tag

Replies are listed 'Best First'.
Re^5: Directory Tree Structure
by Anonymous Monk on Oct 05, 2009 at 12:38 UTC

    Ul and ol can only have li elements as children. And what you're doing seems to be trying to insert one list inside another as a list item, so why not put that nested list inside a new list item (owned by the containing list, containing the nested list)?

    (That's the way most people make those CSS drop-down hierarchical menus, too.)

Re^5: Directory Tree Structure
by Anonymous Monk on Oct 05, 2009 at 06:06 UTC
    Maybe it is html 3.2

      doesn't validate either (same error)