> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/data/store-element-html.md).

# Store Element HTML

Store Element HTML reads the inner HTML of an [Element](/elements/creating-elements.md) and saves it in the [Value Store](/values/value-store.md). Use it when a later step needs markup rather than visible text.

![Store element html Test Step](https://app.does.qa/screenshots/node/data_store_elementHTML.png)

## When to use it

* Capture rich content from a widget or editor for a later assert or API call.
* Save HTML that includes tags stripped from [Store element text](/test-steps/data/store-element-text.md) output.
* Prefer [Store element attribute](/test-steps/data/store-element-attribute.md) when only one attribute such as `href` is needed.

## Configure

### Basics

| Field            | What to set                                           |
| ---------------- | ----------------------------------------------------- |
| **Element**      | The [Element](/elements/creating-elements.md) to read |
| **Storage Name** | Name later steps will use in the Value Store          |

### Advanced

| Field              | What to set                                          |
| ------------------ | ---------------------------------------------------- |
| **Status on fail** | [Failed Status](/test-step-options/failed-status.md) |

## Related

* [Store element text](/test-steps/data/store-element-text.md)
* [Store element value](/test-steps/data/store-element-value.md)
* [Store element attribute](/test-steps/data/store-element-attribute.md)
* [Store element count](/test-steps/data/store-element-count.md)
* [Data](/test-steps/data.md)

**Tags:** `data`, `store`, `elementHTML`, `element`, `html`, `scrape`
