Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Semantics(?)

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Edinburgh, UK
    Posts
    402
    Thanks
    2
    Thanked 1 Time in 1 Post

    Semantics(?)

    I've got a question about semantics and how best to code data the best and most appropriate way.

    For all intense and purposes I want to display a tree diagram. Now with all tree diagrams there are parents and children. However in my case I have some branches that can merge with other paths - similar to how you would represent a versioning tree with branches and merges.

    What I'm struggling with is the HTML element to use for each node. Should it be a div? Seems a very unstructured method of doing things. What about an unordered list? It would infer some form of path, but doesn't really support the merging of branches.

    Basically I'm open to ideas and suggestions about how best to code things up. I'm not worried too much about the connection elements, just the node code. I want to be able to have a simple way to infer/describe the relationships between two nodes, I.e. It's predecessor and it's children.

    If I've not been clear or it sounds like I'm making no sense, please feel free to ask for some clarification; I'll be more than happy to provide it

    Many thanks in advance,
    Richard
    Rich

    "An expert is a person who has made all the mistakes that can be made in a very narrow field."

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    on what you have described I would think firstly of a defintion list.

    <dl>
    <dt></dt>
    <dd></dd>
    <dd></dd>
    </dl>

    hth

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •