---
components:
  - rx.html
---

```python exec
import reflex as rx
```

# HTML Embed

The HTML component can be used to render raw HTML code.

Before you reach for this component, consider using Reflex's raw HTML element support instead.

```python demo
rx.vstack(
    rx.html("<h2>Hello World</h2>"),
    rx.html("<h3>Hello World</h3>"),
    rx.html("<h4>Hello World</h4>"),
    rx.html("<h5>Hello World</h5>"),
    rx.html("<h6>Hello World</h6>"),
)
```

```md alert
# Missing Styles?

Reflex uses Radix-UI and tailwind for styling, both of which reset default styles for headings.
If you are using the html component and want pretty default styles, consider setting `class_name='prose'`, adding `@tailwindcss/typography` package to `frontend_packages` and enabling it via `tailwind` config in `rxconfig.py`. See the [Tailwind docs](/docs/styling/overview) for an example of adding this plugin.
```

In this example, we render an image.

```python demo
rx.html(
    "<img src='https://web.reflex-assets.dev/other/reflex_banner.png' alt='Reflex banner' />"
)
```
