Skip to content
Back to skills

Html Email

ASecurity

Build a responsive HTML email with inline CSS, table layout, and dark-mode support that survives Outlook/Gmail.

  • 3 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 3, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add black141312/ada --skill html-email --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Html Email?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Html Email
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/black141312-html-email/badge)](https://www.skillsdirectory.com/skills/black141312-html-email)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: html-email
description: Build a responsive HTML email with inline CSS, table layout, and dark-mode support that survives Outlook/Gmail.
category: html
---

# HTML Email

Reach for this when you need a marketing or transactional email that renders consistently across Gmail, Outlook, and Apple Mail. Email clients strip `<style>`, ignore flexbox/grid, and demand tables.

1. Set up the skeleton: `<table role="presentation" width="100%">` outer wrapper centering a `<table width="600">` content table; never use `<div>` for layout.
2. Add `<!--[if mso]>` conditional comments for Outlook (it uses Word's rendering engine) and a VML fallback for any background image or button.
3. Write all visual CSS inline on elements (`style="..."`); keep a `<style>` block in `<head>` only for media queries and `:root` color-scheme hints.
4. Make it fluid: content table `width="600"` with `max-width:600px`, single-column stacking via `@media (max-width:600px){ .col{display:block;width:100%!important} }`.
5. Add dark mode: `<meta name="color-scheme" content="light dark">`, `@media (prefers-color-scheme:dark)` overrides, and dark-friendly logo (transparent PNG).
6. Use bulletproof buttons (table-cell with padding + bgcolor, not a styled `<a>`), set `alt` on every image, and keep total HTML under ~100KB (Gmail clips beyond 102KB).
7. Test in Litmus/Email-on-Acid or send to real Gmail + Outlook + iOS before shipping.

## Rules
- Tables for layout, inline CSS for styling — no flexbox, grid, float, or external stylesheets.
- Always provide `alt` text and explicit `width`/`height`; many clients block images by default.
- Use web-safe fonts with a stack fallback; custom `@font-face` fails in Outlook and most clients.
- Use absolute https URLs for every image and link; no relative paths.
- Include a plain-text preheader (hidden span) and a working unsubscribe link for deliverability.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…