# HTML

HTML block is used to integrate custom UI, CSS styles, external scrips (like Spotify, GitHub, analytics, etc.).

**Important:** HTML block is working only on the page it is placed. If you open and close the page, the HTML block is inserted each time. If you need to use some global scripts which executed once per application launch, you should use [custom script](/tgtaps-docs/features/head-scripts.md).

## Example 1: custom div block

<figure><img src="/files/JZPiw5skFMyQQSw32zJZ" alt=""><figcaption></figcaption></figure>

## Example 2: iFrame

You can integrate iFrame into HTML. Keep in mind: you should place HTML block into [a container](/tgtaps-docs/blocks/basic/quickstart.md) with full screen height and select 100% height for HTML block:

<figure><img src="/files/Lh731hTShWyGig8YBUSf" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KK9cfLvCqSEOvq7o6IFc" alt=""><figcaption></figcaption></figure>

Let's take an example:<br>

<figure><img src="/files/M1Ojci0SiELHjxYo5oit" alt=""><figcaption></figcaption></figure>

The iFrame code is:

```
<iframe
   src="https://app.tgtaps.com/"
   width="100%"
   height="100%"
   />

```

The result is:

<figure><img src="/files/Up61mD0M8GZER36MqRyG" alt=""><figcaption></figcaption></figure>

***

Something unclear in docs or you know how to improve article? [Message us in community!](https://docs.tgtaps.com/tgtaps-docs/readme/community)\
We will answer you and then promise to improve the article within 3 days.


---

# 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://tgtaps.gitbook.io/tgtaps-docs/blocks/basic/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.
