public static void Main()
<img src=""http://www.mywebsite.com/myImage1.jpg"" alt = """" style=""width:600px; height: 400px;""/>
<img src=""http://www.mywebsite.com/myImage2.jpg"" alt = """" style=""width:600px; height: 400px;""/>
<img src=""http://www.mywebsite.com/myImage3.jpg"" alt = """" style=""width:600px; height: 400px;""/>
var htmlDoc = new HtmlDocument();
htmlDoc.OptionAutoCloseOnEnd = true;
var htmlNodes = htmlDoc.DocumentNode.SelectNodes("//img");
foreach (var node in htmlNodes){
node.AddClass("img-responsive");
node.Attributes["style"].Remove();
Console.WriteLine(node.OuterHtml);
HtmlNode.ElementsFlags["img"] = HtmlElementFlag.Closed;
Console.WriteLine(htmlDoc.DocumentNode.OuterHtml);