Using HTML in the editor
When you add HTML in the editor via the Source code view, it is automatically validated and cleaned up when saving.
This means that:
- Unsafe code (such as malicious scripts) is automatically removed.
- Invalid or incorrect HTML is corrected or cleaned up.
- The editor (TinyMCE) may automatically rewrite certain HTML structures.
These checks are in place to ensure the website remains secure, stable, and functions correctly.
CSS (styling)
A <style> block inside the <head> of your HTML is automatically removed.
If you want to apply custom CSS, use the dedicated Custom CSS field in the system.
Do not include styling directly in the HTML content.
Allowed HTML elements
Text and structure
<p><h1>,<h2>,<h3><blockquote><pre>
Text formatting
<strong><em><b><i><sup><sub><span>
Lists
<ul><ol><li>
Links
<a href="...">
Allowed protocols:
https:(recommended)http:mailto:tel:news:
Media
<video><audio>
Images
<img src="..." alt="..." width="..." height="...">
Note: SVG files are not allowed. Use JPG, PNG, or GIF instead.
Disallowed HTML elements
Scripts and active content
<script><noscript>- Event handlers such as
onclick,onload, etc. <object><embed><applet>
Document structure elements
<html><head><meta><link><title><style>
Forms
<form><input><button><select><textarea>
Media embeds
<iframe>
Deprecated HTML
<font><center><big><small><strike>
Disallowed link types
data:file:wss:
Styling guidelines
Use simple and consistent styling:
- Prefer inline styling or allowed classes
- Keep layouts simple
- Avoid:
position: absoluteposition: fixedz-index- complex animations or transforms
For spacing:
- Use
marginandpadding - Do not use
for spacing
External fonts (such as Google Fonts) must be loaded centrally in the website and not directly in the content.
HTML validation
Always check your HTML carefully for errors or typos.
Use an HTML validator or have your code reviewed before publishing.
Email client rendering differences
Emails may not render the same across all email clients.
In particular:
- Microsoft Outlook (desktop version) has limited CSS support
- Gmail applies different HTML and CSS rendering rules
As a result, emails may look different from the intended design.
Keep this in mind when designing emails to ensure the most consistent appearance across clients.