John Doe
John Doe

Reputation: 319

Creating automatically DOM tree diagram from HTML file

Question: Is any way (any tool) to create automatically DOM tree diagram from HTML file?

I want to create diagrams like below:

enter image description here

Upvotes: 2

Views: 6066

Answers (2)

Akash Das
Akash Das

Reputation: 171

You can try Live DOM Viewer. It is a useful tool that generates a basic DOM structure from your HTML code. Just make sure to remove any meta tag in your HTML code. Else it won't work.

Upvotes: 1

Walter Northwoods
Walter Northwoods

Reputation: 4146

Do you mean like what https://gojs.net/latest/samples/DOMTree.html does to show the DOM tree of its own page?

Upvotes: 3

Related Questions