## Element.HasAttribute method

Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.

```csharp
public bool HasAttribute(string qualifiedName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| qualifiedName | String | The attribute name. |

### Return Value

`true` if the specified name has attribute; otherwise, `false`.

### See Also

* class [Element](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
