49 HTML email template skill

Dung khi can FILE HTML email chay duoc tren moi email client — cau truc table, CSS inline, be ngang 600px, dark mode, spec rieng cho Gmail, Outlook, Apple Mail va checklist test truoc khi gui.

by minhnv0807·MIT license·★ 599 Stars on the repo·GitHub ↗

Use now

Files of 49 HTML email template

minhnv0807/master1 file shown
SKILL.md
Show the full text150 lines

HTML Email Template

Email HTML khac website HTML: phai dung table layout, inline CSS, tranh moi thu client khong support. Tieu chi: dep tren Gmail, Outlook, Apple Mail, doc duoc tren mobile 375px — khong co exception. Noi dung va sequence lay tu 14-email-marketing; skill nay lo phan code.

Thu thap thong tin

Doc brand guideline (46-brand-guideline) va noi dung email tu 14-email-marketing neu co. Neu thieu, hoi toi da 4 cau:

  1. Loai email + layout? Welcome / broadcast / nurture / offer / transactional — 1 cot don gian, 2 cot co hinh san pham, hay newsletter nhieu muc?
  2. Sections can co? Header / hero / body / social proof / CTA / footer — co anh hero khong?
  3. Copy da co chua? Hay can viet placeholder? CTA chinh link den dau?
  4. Gui bang tool nao? Brevo / Mailchimp / GetResponse / khac — de dung dung merge tag ({{first_name}}...).

Nguyen tac

  1. Table layout, khong div/flexbox/grid/float/position:absolute — Outlook desktop render bang Word engine, khong support.
  2. Toan bo CSS inline — Gmail co the strip the <style> (chi giu <style> cho media query mobile va dark mode, phan con lai inline het).
  3. Width toi da 600px, responsive ve 375px.
  4. Font he thong lam fallback: '[font body]', Arial, Helvetica, sans-serif — khong phu thuoc web font (nhieu client khong load Google Fonts).
  5. Moi the img phai co alt text + width/height attribute — nguoi doc chan anh van hieu email.
  6. Unsubscribe link bat buoc (phap ly) + dia chi cong ty o footer.
  7. Test mobile truoc — phan lon nguoi Viet doc email tren dien thoai.
  8. 1 file .html duy nhat, self-contained, duoi 100KB.

Quy trinh

Buoc 1 — Chon layout
Layout Dung cho
Simple 1 cot Broadcast, nurture — de doc nhat, it loi nhat
2 cot (hinh + text) Offer email co hinh san pham
Newsletter nhieu muc Digest, update — moi muc 1 block table rieng
Buoc 2 — Code theo spec ky thuat
Container: 600px desktop / 100% mobile
Background ngoai: mau xam nhat (vd #F4F4F4)
Background body: [mau nen] (thuong trang)
Font: '[font body]', Arial, Helvetica, sans-serif
Body font-size: 16px / line-height: 1.6
Mobile breakpoint: max-width 480px

Design tokens doc tu brand guideline:

  • Header: nen [mau primary], logo ban sang, padding 20px.
  • Hero: nen [mau primary] hoac gradient [mau primary] sang [mau secondary]; headline bold 28px mau sang; subtext 16px; CTA button.
  • Body: nen sang, padding 40x48px desktop / 24x20px mobile; H2 bold 22px [mau text dam]; body 16px line-height 1.7.
  • CTA button: nen [mau primary], text bold 16px mau sang, padding 14x32px, radius 8px, display inline-block, text-decoration none. (Outlook khong ve border-radius — chap nhan nut vuong fallback, khong dung anh lam button.)
  • Social proof: quote nen [mau nen nhe], border-left 4px [mau primary], ten + role nguon quote.
  • Footer: nen xam nhat, text 13px [mau text phu] — logo nho ~80px, links website/social, dia chi, unsubscribe, copyright.
Buoc 3 — Dien sections
  • Header: logo, can giua.
  • Hero: pre-header text (optional), headline (toi da 60 ky tu), subtext (toi da 100 ky tu), CTA button, hero image optional 600x300px co alt text.
  • Body: "Chao {{first_name}}," → opening 2-3 cau → main content (doan ngan, toi da 4 cau/doan) → bullet list neu co (dung table, khong dung ul de an toan render) → CTA thu hai neu can.
  • Footer bat buoc: dia chi cong ty [dia chi], unsubscribe "Ban nhan email nay vi da dang ky tai [website] | Huy dang ky", copyright © [nam] [ten thuong hieu].
Buoc 4 — Mobile responsive + dark mode
@media only screen and (max-width: 480px) {
  /* container: 100% */
  /* body font: 15px */
  /* CTA: width 100%, can giua */
  /* padding: 24px 20px */
  /* image: 100% width */
}

Dark mode:

  • Them <meta name="color-scheme" content="light dark"> va <meta name="supported-color-schemes" content="light dark">.
  • @media (prefers-color-scheme: dark) chi duoc ho tro mot phan: Apple Mail ho tro tot; Gmail thuong tu dao mau va bo qua media query; Outlook co the tu invert.
  • Quy tac an toan khi khong kiem soat duoc dark mode: logo PNG nen trong phai du tuong phan tren ca nen sang lan toi (hoac them vien sang); khong dung text den thuan tren background trong suot; vung quan trong (CTA) dung mau nen solid; test tren it nhat 1 client dark mode truoc khi gui.
Buoc 5 — Placeholders bat buoc truoc khi gui
  • {{first_name}} — ten nguoi nhan (doi cu phap theo tool gui)
  • {{unsubscribe_link}} — bat buoc phap ly
  • [dia chi cong ty] — dien that
  • [CTA_LINK] — dien link that (kem UTM theo 14-email-marketing)

Spec cac email client

Client Dac diem render Luu y khi code
Gmail (web/app) Co the strip <style> trong mot so ngu canh Inline toan bo CSS; media query co the bi bo qua — layout 1 cot van phai doc duoc
Outlook desktop (Windows) Render bang Word engine Chi table; khong border-radius, khong background-image day du (dung mau solid thay the); test rieng
Apple Mail / iPhone Mail WebKit, render tot nhat Ho tro media query + dark mode
Yahoo / webmail khac Ho tro kha, khac nhau tung ban Gui test that de kiem tra
Mobile apps noi chung Man hinh 375px Font >= 15px, CTA cao toi thieu 44px de bam bang ngon tay

Test checklist truoc khi gui

  • Gmail desktop + Gmail app mobile
  • iPhone Mail app
  • Outlook desktop (neu tep nguoi nhan co dan van phong)
  • Dark mode preview it nhat 1 client
  • Tat ca link hoat dong — dac biet CTA va unsubscribe
  • Alt text cho moi img; email van hieu duoc khi anh bi block
  • File size HTML < 100KB
  • Merge tag dung cu phap tool gui ({{first_name}} khong bi in tho)
  • Gui test that toi 2-3 hop thu khac nhau truoc khi gui ca list
  • Subject + preheader da dien (lay tu 14-email-marketing)

Lien ket skill

  • 14-email-marketing: chien luoc, sequence, noi dung, subject line — viet truoc, code sau.
  • 46-brand-guideline: mau, font, logo cho email tokens.
  • 47-design-review: review email truoc khi gui (brand + readability + CTA + platform fit).
  • 12-brief-landing-page: CTA email thuong tro ve landing page — dong bo message giua 2 ben.

Checklist chat luong

  • Table layout, khong flexbox/grid/float/absolute
  • CSS inline het (tru media query + dark mode trong style)
  • Width 600px, mobile ve 375px khong vo layout
  • Font fallback he thong, khong phu thuoc web font
  • CTA button dat chuan: solid, >= 44px chieu cao tren mobile
  • Footer du: dia chi + unsubscribe + copyright
  • Dark mode meta tags + quy tac an toan da ap dung
  • Da chay het test checklist tren
  • 1 file .html duy nhat, self-contained
1---
2name: 49-html-email-template
3description: "Dung khi can FILE HTML email chay duoc tren moi email client — cau truc table, CSS inline, be ngang 600px, dark mode, spec rieng cho Gmail, Outlook, Apple Mail va checklist test truoc khi gui. Mau va font lay tu brand guideline. Kich hoat khi user nhac 'email HTML', 'code email', 'template email', 'email responsive', 'email vo bo cuc tren Outlook', 'anh trong email khong hien', 'paste vao Brevo bi vo'. Khong dung cho — noi dung va chuoi gui email thi dung skill 14-email-marketing; trang web dat sau nut CTA thi dung skill 12-brief-landing-page; quy dinh mau va font thuong hieu thi dung skill 46-brand-guideline."
4metadata:
5 version: 1.0.1
6 category: operations
7license: MIT
8triggers:
9 - "email html"
10 - "code email"
11 - "template email html"
12 - "email responsive"
13 - "html email"
14 - "email broadcast html"
15output: "File .html duy nhat, self-contained — paste vao email tool (Brevo, Mailchimp, GetResponse...) la gui duoc ngay. Kem checklist test client."
16related:
17 - 14-email-marketing
18 - 46-brand-guideline
19 - 47-design-review
20 - 12-brief-landing-page
21---
22 
23# HTML Email Template
24 
25> Email HTML khac website HTML: phai dung table layout, inline CSS, tranh moi thu client khong support. Tieu chi: dep tren Gmail, Outlook, Apple Mail, doc duoc tren mobile 375px — khong co exception. Noi dung va sequence lay tu `14-email-marketing`; skill nay lo phan code.
26 
27## Thu thap thong tin
28 
29Doc brand guideline (`46-brand-guideline`) va noi dung email tu `14-email-marketing` neu co. Neu thieu, hoi toi da 4 cau:
30 
311. **Loai email + layout?** Welcome / broadcast / nurture / offer / transactional — 1 cot don gian, 2 cot co hinh san pham, hay newsletter nhieu muc?
322. **Sections can co?** Header / hero / body / social proof / CTA / footer — co anh hero khong?
333. **Copy da co chua?** Hay can viet placeholder? CTA chinh link den dau?
344. **Gui bang tool nao?** Brevo / Mailchimp / GetResponse / khac — de dung dung merge tag ({{first_name}}...).
35 
36## Nguyen tac
37 
381. **Table layout, khong div/flexbox/grid/float/position:absolute** — Outlook desktop render bang Word engine, khong support.
392. **Toan bo CSS inline** — Gmail co the strip the `<style>` (chi giu `<style>` cho media query mobile va dark mode, phan con lai inline het).
403. **Width toi da 600px**, responsive ve 375px.
414. **Font he thong lam fallback:** '[font body]', Arial, Helvetica, sans-serif — khong phu thuoc web font (nhieu client khong load Google Fonts).
425. **Moi the img phai co alt text + width/height attribute** — nguoi doc chan anh van hieu email.
436. **Unsubscribe link bat buoc** (phap ly) + dia chi cong ty o footer.
447. **Test mobile truoc** — phan lon nguoi Viet doc email tren dien thoai.
458. **1 file .html duy nhat, self-contained, duoi 100KB.**
46 
47## Quy trinh
48 
49### Buoc 1 — Chon layout
50 
51| Layout | Dung cho |
52|--------|----------|
53| Simple 1 cot | Broadcast, nurture — de doc nhat, it loi nhat |
54| 2 cot (hinh + text) | Offer email co hinh san pham |
55| Newsletter nhieu muc | Digest, update — moi muc 1 block table rieng |
56 
57### Buoc 2 — Code theo spec ky thuat
58 
59```
60Container: 600px desktop / 100% mobile
61Background ngoai: mau xam nhat (vd #F4F4F4)
62Background body: [mau nen] (thuong trang)
63Font: '[font body]', Arial, Helvetica, sans-serif
64Body font-size: 16px / line-height: 1.6
65Mobile breakpoint: max-width 480px
66```
67 
68Design tokens doc tu brand guideline:
69 
70- Header: nen [mau primary], logo ban sang, padding 20px.
71- Hero: nen [mau primary] hoac gradient [mau primary] sang [mau secondary]; headline bold 28px mau sang; subtext 16px; CTA button.
72- Body: nen sang, padding 40x48px desktop / 24x20px mobile; H2 bold 22px [mau text dam]; body 16px line-height 1.7.
73- CTA button: nen [mau primary], text bold 16px mau sang, padding 14x32px, radius 8px, display inline-block, text-decoration none. (Outlook khong ve border-radius — chap nhan nut vuong fallback, khong dung anh lam button.)
74- Social proof: quote nen [mau nen nhe], border-left 4px [mau primary], ten + role nguon quote.
75- Footer: nen xam nhat, text 13px [mau text phu] — logo nho ~80px, links website/social, dia chi, unsubscribe, copyright.
76 
77### Buoc 3 — Dien sections
78 
79- Header: logo, can giua.
80- Hero: pre-header text (optional), headline (toi da 60 ky tu), subtext (toi da 100 ky tu), CTA button, hero image optional 600x300px co alt text.
81- Body: "Chao {{first_name}}," → opening 2-3 cau → main content (doan ngan, toi da 4 cau/doan) → bullet list neu co (dung table, khong dung ul de an toan render) → CTA thu hai neu can.
82- Footer bat buoc: dia chi cong ty `[dia chi]`, unsubscribe "Ban nhan email nay vi da dang ky tai [website] | Huy dang ky", copyright © [nam] [ten thuong hieu].
83 
84### Buoc 4 — Mobile responsive + dark mode
85 
86```css
87@media only screen and (max-width: 480px) {
88 /* container: 100% */
89 /* body font: 15px */
90 /* CTA: width 100%, can giua */
91 /* padding: 24px 20px */
92 /* image: 100% width */
93}
94```
95 
96Dark mode:
97 
98- Them `<meta name="color-scheme" content="light dark">` va `<meta name="supported-color-schemes" content="light dark">`.
99- `@media (prefers-color-scheme: dark)` chi duoc ho tro mot phan: Apple Mail ho tro tot; Gmail thuong tu dao mau va bo qua media query; Outlook co the tu invert.
100- Quy tac an toan khi khong kiem soat duoc dark mode: logo PNG nen trong phai du tuong phan tren ca nen sang lan toi (hoac them vien sang); khong dung text den thuan tren background trong suot; vung quan trong (CTA) dung mau nen solid; test tren it nhat 1 client dark mode truoc khi gui.
101 
102### Buoc 5 — Placeholders bat buoc truoc khi gui
103 
104- `{{first_name}}` — ten nguoi nhan (doi cu phap theo tool gui)
105- `{{unsubscribe_link}}` — bat buoc phap ly
106- `[dia chi cong ty]` — dien that
107- `[CTA_LINK]` — dien link that (kem UTM theo `14-email-marketing`)
108 
109## Spec cac email client
110 
111| Client | Dac diem render | Luu y khi code |
112|--------|-----------------|----------------|
113| Gmail (web/app) | Co the strip `<style>` trong mot so ngu canh | Inline toan bo CSS; media query co the bi bo qua — layout 1 cot van phai doc duoc |
114| Outlook desktop (Windows) | Render bang Word engine | Chi table; khong border-radius, khong background-image day du (dung mau solid thay the); test rieng |
115| Apple Mail / iPhone Mail | WebKit, render tot nhat | Ho tro media query + dark mode |
116| Yahoo / webmail khac | Ho tro kha, khac nhau tung ban | Gui test that de kiem tra |
117| Mobile apps noi chung | Man hinh 375px | Font >= 15px, CTA cao toi thieu 44px de bam bang ngon tay |
118 
119## Test checklist truoc khi gui
120 
121- [ ] Gmail desktop + Gmail app mobile
122- [ ] iPhone Mail app
123- [ ] Outlook desktop (neu tep nguoi nhan co dan van phong)
124- [ ] Dark mode preview it nhat 1 client
125- [ ] Tat ca link hoat dong — dac biet CTA va unsubscribe
126- [ ] Alt text cho moi img; email van hieu duoc khi anh bi block
127- [ ] File size HTML < 100KB
128- [ ] Merge tag dung cu phap tool gui ({{first_name}} khong bi in tho)
129- [ ] Gui test that toi 2-3 hop thu khac nhau truoc khi gui ca list
130- [ ] Subject + preheader da dien (lay tu 14-email-marketing)
131 
132## Lien ket skill
133 
134- `14-email-marketing`: chien luoc, sequence, noi dung, subject line — viet truoc, code sau.
135- `46-brand-guideline`: mau, font, logo cho email tokens.
136- `47-design-review`: review email truoc khi gui (brand + readability + CTA + platform fit).
137- `12-brief-landing-page`: CTA email thuong tro ve landing page — dong bo message giua 2 ben.
138 
139## Checklist chat luong
140 
141- [ ] Table layout, khong flexbox/grid/float/absolute
142- [ ] CSS inline het (tru media query + dark mode trong style)
143- [ ] Width 600px, mobile ve 375px khong vo layout
144- [ ] Font fallback he thong, khong phu thuoc web font
145- [ ] CTA button dat chuan: solid, >= 44px chieu cao tren mobile
146- [ ] Footer du: dia chi + unsubscribe + copyright
147- [ ] Dark mode meta tags + quy tac an toan da ap dung
148- [ ] Da chay het test checklist tren
149- [ ] 1 file .html duy nhat, self-contained
150 

Discussion

Alternatives

Animation vocabularyReverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and wants the right word to prompt an AI or designer with. For naming an effect, not designing or building one.Design & UI · MITPlaywright BrowserHeadless, reproducible browser automation with Playwright for any project — screenshots of web pages or local dev servers (desktop/tablet/mobile, full page or one element, single page or every page/menu of an app in one batch), frontend audits (console errors, failed requests, broken images/links, responsive overflow, axe accessibility, LCP/CLS performance), before/after visual comparison, scripted E2E flows (log in, click, fill, page through, assert), and logged-in pages via saved sessions. Use this whenever the user wants to screenshot or visually check a site, find frontend bugs, see how a page looks on mobile, compare the UI before and after a CSS/code change, reproduce a bug from an issue or ticket and capture evidence images for it, verify a UI flow works, or run/write a browser test — even if they never say "Playwright" or "browser". If Claude in Chrome could also do the job, briefly ask which to use (with a recommendation) instead of silently picking.Coding · MITAct as an electron frontend developerGuide users in building a desktop application using Electron with a focus on frontend development best practices.Coding · CC0-1.0AI builderThis AI builder will create a fully functional website based on the provided details the website will be ready to publish or deployInfrastructure & ops · CC0-1.0