# HTML Block

Use the HTML block to merge multiple outputs. This is a somewhat advanced block that requires [basic HTML knowledge](https://www.w3schools.com/html/html_basic.asp). It’s great for creating memes and comics.

<figure><img src="https://3256383364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEEfZP6ffo6mVPfK4pJ0a%2Fuploads%2F7zSMxCYGZ3VCa6EpLzGA%2FScreenshot%202024-06-12%20at%201.33.40%E2%80%AFPM.png?alt=media&#x26;token=374a18dd-6004-47d3-8a8e-f254826d199c" alt="" width="307"><figcaption></figcaption></figure>

There are three ways to leverage the HTML block for defining the layout of your workflow: templates, AI-generated HTML, or directly writing HTML.

#### Templates

Use one of our predefined templates to set up the layout of your output. You can later refine your output using HTML.&#x20;

<div align="left"><figure><img src="https://3256383364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEEfZP6ffo6mVPfK4pJ0a%2Fuploads%2FeAOqe8RFsYRtkds5DLT6%2FScreenshot%202024-06-06%20at%207.50.16%E2%80%AFAM.png?alt=media&#x26;token=6d3160b3-d730-4535-b2a2-36daaafc8442" alt="" width="375"><figcaption></figcaption></figure></div>

#### AI-Generated HTML

Use the "Generate HTML" button to automatically generate HTML based on your description of the desired layout.&#x20;

<div align="left"><figure><img src="https://3256383364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEEfZP6ffo6mVPfK4pJ0a%2Fuploads%2F4ze4TYRYA5OjbDuCQNKy%2FScreenshot%202024-06-06%20at%207.54.20%E2%80%AFAM.png?alt=media&#x26;token=748075dd-8500-427d-9ad4-ab9fd8e15343" alt="" width="375"><figcaption></figcaption></figure></div>

#### HTML

Write HTML the old fashioned way.&#x20;

**Tips:**

* Use a variable after “img src=” to display an image generated by another block.
  * For example, displaying images in a four-panel comic format looks like this:

![](https://lh7-us.googleusercontent.com/0YTmTxcDi2r_YvwOnZCbMOL-_kou72R99XaH-GKRWUgqBoPjh0Z1ZGZvXjxpOlav5fZqGhQvjA4uwpag6dRAnQIlm6M_fsNrrnRq0hN28joR2fyqXPkxo5Kl1bob4aefcjL33y6oCFqbEZ6cV5i0_8w)
