Introduction - If you have any usage issues, please Google them yourself
How to identify the different elements in the selection of web pages
<H2>Introduction</H2>
<P>First, I get an IHTMLDocument2 interface for the browser component and then
get the selection property of the interface to get an
<CODE>IHTMLSelectionObject</CODE> interface. Now came the tough part, actually
parsing the stuff. I d assumed that if I was able to create a control range
using the <CODE>createRange</CODE> method for the selection, that I d be able to
get a list which would have the HTML tags and their attributes neatly
separated.</P>