On 06.05.2009 at 11:07 Uhr, [email protected] (Michael Vogt) wrote:

What is the comon way to build a tree structure in html? One sample of
what I need can be found here:

http://www.javascripttoolbox.com/lib/mktree/

Is this a good way to do it, or are there better ones available?

Mark-up wise you would be fine there. Make sure to pay attention to semantics. A good read-up on lists in HTML is:
<http://www.w3.org/TR/html4/struct/lists.html>

Your posted example then utilizes JavaScript to bring behavior to the whole thing, making it possible to expand and collapse.

There are languages better suited for trees but semantically I see now way of doing it "the right way" in HTML, other than relying on lists, but I will stand corrected if others have ideas :)

T.
--
Tobias Horvath  <http://tobyx.com>



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to