## Element.QuerySelector method

Returns the first Element in document, which match selector

```csharp
public Element QuerySelector(string selector)
```

| Parameter | Type | Description |
| --- | --- | --- |
| selector | String | The selector. |

### Return Value

The matched element

### See Also

* class [Element](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
