To get the best results when creating emails in Freshsales using HTML, follow these guidelines to ensure that HTML code is reproduced into content.
Freshsales regulates the use of HTML tags in the following manner:
- Permitted tags: These tags will be fully permitted and will not be blocked by Freshsales. To find the list of fully permitted tags, please refer to the table below.
- Partly prohibited tags: The usage of such tags will result in the removal of the tag. Any tag that is not a part of the permitted list will be removed. However, the content used along with the tag will be retained. Picture, iframe, and video tags are partly prohibited.
- Fully prohibited tags: When such tags are used, both the content and the tag will be fully removed. Title and Script tags are fully prohibited tags. The usage of either of these tags will lead to the removal of both the tag and the content.
HTML TAG ALLOWED | ATTRIBUTES SUPPORTED |
a | href, target, dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
Protocols supported: href' => ['ftp', 'http', 'https', 'mailto', :relative] | |
abbr | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
acronym | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
address | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
article | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
audio | dir, controls, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
b | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
bdo | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
bdi | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
blockquote | cite, dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
br | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
caption | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
cite | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
Protocols supported: | |
code | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
col | dir, lang, title, style, id, align, class, rel, valign, halign, border, span, width, height |
colgroup | dir, lang, title, style, id, align, class, rel, valign, halign, border, span, width, height |
dd | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
del | cite, datetime, dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
Protocols supported: | |
details | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
dfn | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
dl | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
div | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
dt | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
em | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
font | color, dir, face, lang, title, style, id, align, class, rel, valign, halign, border, width, height, size |
footer | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
figcaption | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
figure | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
h1 | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
h2 | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
h3 | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
h4 | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
h5 | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
h6 | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
header | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
hgroup | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
hr | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
i | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
img | align, alt, data-id, data-height, dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height, src |
Protocols supported: | |
ins | cite, datetime, dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
kbd | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
label | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
legend | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
li | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
main | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
mark | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
meter | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height, min, max, value |
nav | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
ol | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height, start, reversed, type |
p | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
pre | code-brush, dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
progress | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height, min, max, value |
q | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
rp | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
rt | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
ruby | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
s | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
samp | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
section | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
summary | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
small | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
strike | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
strong | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
sub | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
sup | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
table | border, bgcolor, cellspacing, cellpadding, dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height, summary |
target | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
Protocols supported: | |
tbody | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
td | abbr, axis, bgcolor, colspan, dir, lang, title, style, id, align, class, rel, rowspan, valign, halign, border, width, height |
tfoot | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
th | abbr, axis, bgcolor, colspan, dir, lang, title, style, id, align, class, rel, valign, halign,rowspan, scope, border, rowspan, width, height |
thead | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
time | datetime, dir, lang, pubdate, title, style, id, align, class, rel, valign, halign, border, width, height |
tr | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
tt | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
u | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
ul | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height, type |
var | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
wbr | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
span | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
style | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
center | dir, lang, title, style, id, align, class, rel, valign, halign, border, width, height |
Styling an email:-
- To add styles to your email, you may embed CSS in the style tag. However, the style tag needs to be added as the first tag in the HTML content. This ensures that all email clients will accept the styling.
- To ensure better style rendering, it is advisable to use Inline styling as all tags accept style attributes.