← 返回列表
全部 Skill›内容与媒体 Content & Media›html-email

html-email

作者 @asgeirtj · 语言 en
Send-ready single-file email
内容与媒体 Content & Media设计需海外环境待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
72,517
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

HTML email

Design an HTML email as ONE self-contained .html file that survives

real email clients. Email rendering is not browser rendering — Gmail,

Outlook, and Apple Mail each strip or mangle different things, and the

rules below are what reliably survives all three. When a rule here

conflicts with normal web-design instincts, the rule wins.

Layout and styling:

  • Structure with nested `<table role="presentation" cellpadding="0"

cellspacing="0" border="0">` — no flexbox, no grid, no floats, no

position. One centered wrapper table, max-width 600px, single-column

flow (stacked rows beat side-by-side columns).

  • Inline EVERY style on the element it styles. A <style> block in

<head> may additionally carry only what can't inline (media queries,

dark-mode tweaks) — several clients drop it entirely, so the email

must read correctly from inline styles alone.

  • No JavaScript anywhere (universally stripped). No external

stylesheets. No web fonts — use email-safe stacks (Arial, Helvetica,

Georgia, Verdana, Tahoma, 'Courier New') with generic fallbacks.

  • Build the visual design out of colored table cells, borders, spacer

cells, and type — not images. There is nowhere to host project

images from here: a referenced project file will not exist for

recipients. If imagery is essential, leave a clearly-marked

placeholder cell with alt text and tell the user to swap in a hosted

https URL before sending.

  • Buttons are "bulletproof": a padded <td> with bgcolor and inline

border-radius, the <a> filling it with display:block and inline

color — never an image, never a styled <button>.

Client quirks that matter:

  • Outlook (Word engine): give every table/cell explicit widths; set

line-height with mso-line-height-rule:exactly; wrap Outlook-only

fixes in <!--[if mso]> … <![endif]--> conditionals.

  • Gmail clips messages beyond ~100KB of HTML — stay well under.
  • Add <meta name="color-scheme" content="light dark"> and pick colors

that survive dark-mode inversion (avoid pure #000/#fff backgrounds;

test text on mid-tone fills).

Deliverability and accessibility:

  • First element in <body>: a hidden preheader span (~85 chars) that

previews next to the subject line.

  • alt text on any image, lang on <html>, real <a href> links (no

dead # anchors), and a footer with a plausible unsubscribe line and

postal address for anything marketing-shaped.

Show the design at 600px; mention in your reply that the file is

send-ready HTML the user can drop into their email tool.

评论
Aasgeirtj
asgeirtj
asgeirtj/system_prompts_leaks
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@asgeirtj
所属大类内容与媒体 Content & Media / 设计
国内可用性需海外环境
最近源活动—
风险提示无
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。