# Adding HTML to Your Email Template

Source: https://support.wix.com/en/article/adding-html-to-your-email-template (updated 2026-02-12)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Customize your email content with HTML. Click on a question to learn more about adding HTML as an element. You can also find a list of the supported HTML tags and attributes below.

---

## FAQs

We are here to help with all your questions. Click a question below to learn more.

**What are the limitations when adding an HTML element?**

The following are not permitted within the HTML code component:

* **Javascript:** This is the case with most email clients as it can pose security threats.
* **Embedded content:** Similarly to JavaScript code, embedded elements with <iframe> tags are not supported as they could pose a security threat.
* **URLs without protocol:** Make sure to use full URLs or URLs with implicit protocols in your HTML (e.g. https://url.com or //url.com). URLs without protocol will not work in most email clients, and will automatically be removed from your HTML.

**What are the recommendations for adding an HTML element?**

* **Inline CSS:** For best results use inline CSS to apply styling to each element separately.
* **Dynamic variables:** You can use dynamic variables such as ${contact.Name.first} which are available in other components as well.

**How can I test the email before sending?**

Learn how to [send a test email](https://support.wix.com/en/article/email-marketing-sending-your-email-campaign) to check how the HTML component looks on different devices and email clients.

---

## Supported tags and attributes

Below is a list of all whitelisted HTML tags and attributes. Any unsupported tags and attributes will be removed automatically from the component.

| Tags | Attributes |
| --- | --- |
| h1 | style, dir, class |
| h2 | style, dir, class |
| h3 | style, dir, class |
| h4 | style, dir, class |
| h5 | style, dir, class |
| div | style, dir, class |
| span | style, dir, class |
| p | style, dir, class |
| a | style, dir, target, rel, href |
| ol | style, dir, class, start |
| ul | style, dir, class |
| li | style, dir, class |
| s | style, dir, class |
| b | style, dir, class |
| i | style, dir, class |
| u | style, dir, class |
| bdi | style, dir |
| br | Not applicable |
| pre | style, dir, class |
| table | style, class, align, role, cellpadding, cellspacing, width |
| tr | style, class |
| td | style, class, align, valign, width, rowspan, colspan |
| tbody | style, class |
| thead | style, class |
| img | style, class, src, width, height, border, alt, usemap, dir, target, rel |
