---
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](/docs/k6/next/javascript-api/k6-html/) contains functionality for HTML parsing.

Expand table

| Function                                                          | Description                                                                                              |
|-------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
| [parseHTML(src)](/docs/k6/next/javascript-api/k6-html/parsehtml/) | Parse an HTML string and populate a [Selection](/docs/k6/next/javascript-api/k6-html/selection/) object. |

Expand table

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