Tuesday, May 30, 2006

Foramen Central Canal

Websites as Graphs


Websites as Graphs
html-visu "Back to Basics" could be the title of this post . Here is an excellent tool, operating through the Java platform , and developed with open source programming language: Processing (you can also get an overview of the different prototypes programs this media operator). The operating principle of "Websites as Graphs " is simple: it scans the source code architecture of the website you submit and via a certain algorithm (which Here sources ) generates a tree "multicolored" representative of the logic of nesting HTML tags. Obviously, as said, it speaks only to the initiated, but already, graphically, it's beautiful is not it? But then a point of view "developer" is sublime. Not only this program can parse the code of a webpage, but it also generates a real-time rendering of his analysis with a dynamic graphical superb: it seems that the "beast that emerges is alive. " Well after having passed the stage of visual dazzle, let's get serious: deciphering!

  • Black : tag \u0026lt;html> , the "root" of the source code. That is where to begin reading the chart.

  • Green : tags \u0026lt;div>

  • The orange : tags text formatting: \u0026lt;br /> \u0026lt;p> \u0026lt;blockquote>

  • Red : tables: \u0026lt;table> \u0026lt;td>

  • Blue : the link tag: \u0026lt;a>

  • Yellow : forms: \u0026lt;form> \u0026lt;input> \u0026lt;textarea> \u0026lt;select> \u0026lt;option>

  • Violet : pictures: \u0026lt;img />

  • Grey : all other tags that were not listed above .


Now that you have the code colors, we will read a chart:

Test tags for Websites as Graphs Here is a test page I developed to give you an overview. I purposely arranged the colors in this way (via the source code) to distinguish each group: first, the site root (the black dot) from which two branches to nodes gray. This type of departure in architecture is (usually) the same for all web pages. Indeed, a source must contain at least one tag \u0026lt;html> , \u0026lt;head> and \u0026lt;body> to "start" to be complies with Internet standards (W3C ). Then revolve around the gray point down the tags of the type \u0026lt;title> , \u0026lt;script> , \u0026lt;link> or \u0026lt;style> , and gray point above tags \u0026lt;div> (green). Around each of them you will recognize the tags listed above. Thus, we have a graphical, fast and aesthetics of the source code of a web page without having to delve into the "programming" to understand the architecture. One could even imagine to develop html files whose source code would generate beautiful multicolored graphs (genus flowers or fireworks ) with this program! A "diversion" from the tool by artists? This is not the first time this happen ... The fact is that many people have already posted your screenshot on Flickr !

For my part, I would not be unhappy that a new version of the tool is developed, but this time with more tags parsed, including the famous tag \u0026lt;object> !

0 comments:

Post a Comment