Generate tree like structure in HTML.

120 views
Skip to first unread message

Shashank Agarwal

unread,
Jun 17, 2014, 10:47:50 AM6/17/14
to chromiu...@chromium.org
Hi, I am newbie to HTML. I was wondering how can I generate a structure like this in HTML. What should I use in this?

                                                                                   A
                                                                                 /    \
                                                                                /      \
                                                                               B      C
                                                                              /  \       \
                                                                             /    \       \
                                                                            D    E      F  

OR


                                                                                   A
                                                                                    
                                                                                     
                                                                               B      C
                                                                                  
                                                                                        
                                                                            D    E      F  

Marc Fawzi

unread,
Jun 17, 2014, 10:57:06 AM6/17/14
to Shashank Agarwal, chromiu...@chromium.org
Look for data visualization libraries that have a tree layout like D3.js (SVG) or simpler ones... 


--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html...@chromium.org.
To post to this group, send email to chromiu...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Shashank Agarwal

unread,
Jun 17, 2014, 11:17:57 AM6/17/14
to chromiu...@chromium.org, shasha...@gmail.com
Hi Marc,

Thank you for this idea. I have generated hierarchy structures using lists in HTML. Isn't there any way to generate tree type things in HTML?

Marc Fawzi

unread,
Jun 17, 2014, 11:23:53 AM6/17/14
to Shashank Agarwal, chromiu...@chromium.org
something like this?

http://jsfiddle.net/Vd5BH/5/ (not mine, just googled "html table tree")
Reply all
Reply to author
Forward
0 new messages