Visualize Your Markup with Processing
I recently discovered an interesting applet developed by Aharef in 2006 that uses the Processing programming language to graph the element tree of a given web page.
For instance the current markup on this site gets rendered like this:
According to the documentation and examples, the colors represent:
- blue: links (the
Atag) - red: tables (
TABLE,TRandTDtags) - green:
DIVtags - violet: images (the
IMGtag) - yellow: forms (
FORM,INPUT,TEXTAREA,SELECTandOPTIONtags) - orange: linebreaks and blockquotes (
BR,P, andBLOCKQUOTEtags) - black: the
HTMLtag, the root node - gray: all other tags
Processing is an open-source programming language and development environment used for prototyping and producing images, animation, and interactions within a visual context. The code-graphing applet requires Java, but processing.js has made the language more widely accessible and available for experimentation.

