public static void Main()
<h1>This is <b>bold</b> heading</h1>
<p>This is <u>underlined</u> paragraph</p>
<h2>This is <i>italic</i> heading</h2>
<h2>This is new heading</h2>
var htmlDoc = new HtmlDocument();
var h1Node = htmlDoc.DocumentNode.SelectSingleNode("//h1");
h1Node.Attributes.Append("style");
Console.WriteLine(h1Node.OuterHtml);
h1Node.SetAttributeValue("style", "color:blue");
Console.WriteLine("\n***** After setting an attribute value *****\n");
Console.WriteLine(h1Node.OuterHtml);