## Document.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 node.

### See Also

* class [Element](../../element/)
* class [Document](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
