tags:

views:

85

answers:

3

I have a project and this project includes a module about web page html and css properties. I have to get all the html tags and their relative css properties and values in a hierarchical way like FireBug.

What i mean may be more understandable if i show a pic:

screenshot

How can i retrieve css properties of html selectors of a web page like the image above?

A: 

It may help to familiarize yourself with how Firebug does it:

meder
These codes are written in JavaScript.. Can't i develop a software to retrieve html and css codes in C# or other programming language?
pegasus
Sure you can, and we wish you the best of luck! Javascript is just far and away the best tool for HTML and CSS. (Try 'Javascript: the Good Parts' by D. Crockford)
johnjbarton
You would primarily need any language that has 2 libraries - 1 for DOM parsing and 1 for CSS parsing.
meder
A: 

This can help you firebug wiki

Csaryus
+1  A: 

If you are talking about simply embedding a module like firebug, why not try their javascript version? You don't need the firefox plugin, and can use it in any browser: http://getfirebug.com/firebuglite

Nelga