C# get text out of HTML and compare them to a string
<p><strong>I don't know if this is possible, but i want to take a certain word out of a HTML webpage (online) for instance the word "Content" and i want to compare it to a string. And this must be all done in C#</strong></p>

<p>First i want to take out a word out of a webpage then compare it to a string. </p>

<p>I hope you understand this question.</p>

<pre><code>HtmlDocument doc = webBrowser1.Document;
            HtmlElementCollection col = doc.GetElementsByTagName("Register");

            if (col.Equals("Register"))
            {
                label5.Text = "You are logged out";

            }
</code></pre>
