---
title: "k6/html | Grafana k6 documentation"
description: "The k6/html module contains functionality for HTML parsing."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# k6/html

The [`k6/html` module](https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-html/) contains functionality for HTML parsing.

Expand table

| Function                                                                               | Description                                                                                                                   |
|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
| [parseHTML(src)](https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-html/parsehtml/) | Parse an HTML string and populate a [Selection](https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-html/selection/) object. |

Expand table

| Class                                                                             | Description                                                                                                                   |
|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
| [Element](https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-html/element/)     | An HTML DOM element as returned by the [Selection](https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-html/selection/) API. |
| [Selection](https://grafana.com/docs/k6/v2.3.x/javascript-api/k6-html/selection/) | A jQuery-like API for accessing HTML DOM elements.                                                                            |
