> For the complete documentation index, see [llms.txt](https://maya-admin.gitbook.io/building-skills/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maya-admin.gitbook.io/building-skills/product/node-library/parser/html.md).

# HTML

Extracts elements from an html document held in msg.payload using a CSS selector.

### Inputs

* `payload` (string) : the html string from which to extract elements.
* `select` (string) : if not configured in the edit panel the selector can be set as a property of msg.

### Outputs

* `payload` (array | string) : the result can be either a single message with a payload containing an array of the matched elements, or multiple messages that each contain a matched element. If multiple messages are sent they will also have `parts` set.

![](https://1551505950-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mkaq90Au3F8Kz0qIFzO%2Fuploads%2Fgit-blob-58dd2f3d00040215644e572d6894a90c6b424b33%2Fimage.png?alt=media)

### Details

This node supports a combination of CSS and jQuery selectors. See the [css-select documentation](https://github.com/fb55/CSSselect#user-content-supported-selectors) for more information on the supported syntax.
