## Element.Matches method

Determines whether the element matches the specified CSS selector.

```csharp
public bool Matches(string selector)
```

| Parameter | Type | Description |
| --- | --- | --- |
| selector | String | The selector. |

### Return Value

`true` if the element matches the selector; otherwise, `false`.

### See Also

* class [Element](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
