public static void Main()
@"<html><body><p>foo <a href='http://www.example.com'>bar</a><br> baz</p></body></html> ";
var htmlDoc = new HtmlDocument();
var htmlAnchor = htmlDoc.DocumentNode.SelectSingleNode("//a");
var htmlBr = htmlDoc.DocumentNode.SelectSingleNode("//p");
string hrefValue = htmlAnchor.Attributes["href"].Value;
Console.WriteLine(htmlBr.InnerText + " " + hrefValue);