> For the complete documentation index, see [llms.txt](https://docs.browserflow.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.browserflow.app/reference/browserflow-commands/extract-data/get-element-html.md).

# Get Element HTML

Gets the HTML of the specified element

#### Selector

* [Selector](/guides/selectors.md) for the element with text

#### Variable to assign element attribute

* Name of the variable to store the HTML

#### Use blank text if element is missing

* If selected, Browserflow will use an empty string as the value if the element does not exist
  * By default, Browserflow will wait for the element to appear and exit with an error if the element cannot be found
* This is useful when an element appears inconsistently (e.g. when looping through a list of elements where some elements contain a particular piece of data but others don't)
