# Set element inner HTML

Use the action Charles: Set Element Inner HTML workflow action and give it a CSS selector and a HTML input, EG:&#x20;

```
<span id="mySpan" style="color:blue; font-weight:bold; 
background-color:yellow; padding:5px; border-radius:5px;">Charles Rocks!</span>
```

<figure><img src="/files/8Kpi736tIGG1FHnbiYhN" alt=""><figcaption></figcaption></figure>

Learn more about CSS selectors:

* <https://www.w3schools.com/jsref/met_document_queryselector.asp>
* <https://www.w3schools.com/css/css_selectors.asp>
* <https://www.w3schools.com/cssref/css_selectors.php>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cranford-tech.gitbook.io/charles/key-features/set-element-inner-html.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
