I want to know that how to get attribute "class" of an html element using webbrowser component in C# .. Normally i am able to get any attribute (except class attribute) of any html tag. but this time i want to get attribute of "class" here is a sample html element
<p class="abstract"> Hello World </p>
Normally i was able to get the attribute of any html tag like
<a href="http://www.anylink.com"> Hello World </a>
String = HtmlElement.GetAttribute("href"); //So it gives me the value of href attribute...
But for this html tag <p class="abstract"> Hello World </p>
I tried String = HtmlElement.GetAttribute("class");
but it doesnt worked for me :(