ElementHasAttribute Method
Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.11
Syntax
public bool HasAttribute(
	string name
)

Parameters

name
Type: SystemString
The attribute name.

Return Value

Type: Boolean
true if the specified name has attribute; otherwise, false.
See Also