## Element.SetAttribute method

Adds a new attribute. If an attribute with that name is already present in the element, its value is changed to be that of the value parameter

```csharp
public void SetAttribute(string qualifiedName, string value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| qualifiedName | String | The attribute name. |
| value | String | The value. |

### See Also

* class [Element](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
