# Email code editing

**URL:** <https://community.hubspot.com/t/email-code-editing/124650>\
**Category:** Email Marketing Tool\
**Tags:** templates, marketing-email\
**Created:** [January 23, 2025, 4:32pm UTC](https://community.hubspot.com/t/email-code-editing/124650 "2025-01-23T16:32:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmartListGhost](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@SmartListGhost](https://community.hubspot.com/u/SmartListGhost)\
**Post date:** [January 23, 2025, 4:32pm UTC](https://community.hubspot.com/t/email-code-editing/124650/1 "2025-01-23T16:32:03Z")

</div>

Is there a way to edit code on the fly? For example: in the Marketo email editor there’s a button on the top right that lets you open up the code and then see the results of any edits after saving.

I ask because I’m getting this warning when publishing emails:

1. Style tags aren’t supported by most email clients. Try using inline styles instead.

and I’ve been getting some weird bugs when editing & checking rendering.

Thanks!

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [January 23, 2025, 4:56pm UTC](https://community.hubspot.com/t/email-code-editing/124650/2 "2025-01-23T16:56:55Z")

</div>

Hi @SmartListGhost,

It’s pretty much like this notice says: While you can edit the source code of some elements within the email editor, you might be breaking some of HubSpot’s built-in compatibility and responsivity across email clients.

That and the fact that style tags aren’t supported by most email clients. This means that when you design an email, you can’t rely on `<style>` tags (used for defining CSS rules) to consistently style your email. Many email clients, such as Outlook or Gmail, either strip out or ignore `<style>` tags due to security and compatibility concerns. Instead, you should use inline styles, where you directly apply CSS styles to individual HTML elements using the `style` attribute.

Using a `<style>` tag (not recommended for email):

```lia-code-sample
<style>
 p { color: blue; font-size: 16px; }
</style>
<p>This text is blue and 16px.</p>

```

Using inline styles (recommended for email):

```lia-code-sample
<p style="color: blue; font-size: 16px;">This text is blue and 16px.</p>

```

If you want full control over email elements or the entire email, you would code modules or templates:

> **[Create and edit modules in the design manager](https://knowledge.hubspot.com/design-manager/create-and-edit-modules)**
>
> Learn how to create and customize modules in HubSpot's Design Manager to enhance your blog, pages, or emails.

> **[Build a custom coded template](https://knowledge.hubspot.com/design-manager/build-a-custom-coded-template)**
>
> Learn more about creating custom coded templates and cloning existing templates in the design manager. Note that this method requires an understanding of HTML and CSS.

Best regards!

---

<div class="post-metadata">

**Author:** ![SmartListGhost](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@SmartListGhost](https://community.hubspot.com/u/SmartListGhost)\
**Post date:** [January 23, 2025, 5:32pm UTC](https://community.hubspot.com/t/email-code-editing/124650/3 "2025-01-23T17:32:08Z")

</div>

AH! This helped put the pieces together, thanks a ton as usual @karstenkoehler !
