In this example, we create an HTML document using HtmlAgilityPack. We then create a new div element and add a class attribute to it with the value of "container". Lastly, we append the div element to the document. Example 2:csharp HtmlDocument doc = new HtmlDocument(); HtmlNode node = doc.CreateElement("img"); node.Attributes.Add("src", "image.jpg"); node.Attributes.Add("alt", "Image"); doc.DocumentNode.AppendChild(node); ``` Here, we create an HTML document and create a new img element. We then add two attributes to the img element - the source attribute with the value of "image.jpg", and the alt attribute with the value of "Image". We append the img element to the document. In both examples, we use the HtmlDocument class's CreateElement method to create a new element, and the Attributes property to add attributes to that element. Overall, these examples demonstrate how HtmlAgilityPack can be used to create attributes in an HTML document using C#.