Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Directory Tree Structure

by almut (Canon)
on Oct 05, 2009 at 03:11 UTC ( [id://799154]=note: print w/replies, xml ) Need Help??


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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://799154]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found