Skip to content
Testing
Skill

/kb-email-accessibility

Reference data, not a reviewer. HTML email accessibility: table layouts, inline styles, dark mode, image fallbacks, and email client rendering constraints.

From plugin
accessibility-agents
431113 skills7 hooks

Claude Code

$ npx -y skills add Community-Access/accessibility-agents --skill kb-email-accessibility --agent claude-code

SKILL.md

kb-email-accessibility.SKILL.md
name: kb-email-accessibility
description: "Reference data, not a reviewer. HTML email accessibility: table layouts, inline styles, dark mode, image fallbacks, and email client rendering constraints."
license: MIT
disable-model-invocation: true
user-invocable: false
metadata:
  tier: reference
  domain: cross-cutting
  output: none
  effort: low
  title: Email Accessibility

Email Accessibility Skill

Reference data for HTML email accessibility under email client rendering constraints. Used by `email-accessibility` agent.

---

Email Client Rendering Constraints

Email HTML operates under severe constraints compared to web browsers. Support below is from caniemail.com (Gmail webmail, Outlook for Windows, Apple Mail for macOS, Yahoo webmail, Outlook.com; tests dated 2019-2026). Clients change, so retest before relying on a row.

| Feature | Gmail | Outlook (Win) | Apple Mail | Yahoo | Outlook.com | |---------|-------|--------------|------------|-------|-------------| | Semantic HTML (`<nav>`, `<main>`) | Partial | Not supported | Supported | Not supported | Partial | | `role` attribute | Supported | Supported | Supported | Partial | Supported | | `aria-label`, `aria-hidden` | Supported | Supported | Supported | Not supported | Supported | | `<style>` blocks | Partial | Partial | Supported | Supported | Supported | | External CSS | Stripped | Stripped | Stripped | Stripped | Stripped | | JavaScript | Stripped | Stripped | Stripped | Stripped | Stripped | | CSS Grid | Supported | Not supported | Supported | Supported | Supported | | CSS Flexbox | Supported | Not supported | Supported | Supported | Supported | | `<button>` element | Supported | Not supported | Supported | Partial (submit only) | Partial (reset only) | | `tabindex` | Stripped | Stripped | Supported | Stripped | Stripped |

Key Constraint: Outlook Desktop uses the Word rendering engine, not a browser engine

Accessible Email Patterns

Table-Based Layout (Required for Outlook)

<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
  <tr>
    <td align="center" style="padding: 20px;">
      <!-- Content here -->
    </td>
  </tr>
</table>

**Rules:**

  • ALL layout tables MUST have `role="presentation"` to prevent screen readers from announcing table semantics
  • Data tables (actual tabular data) should NOT have `role="presentation"` - they need proper `<th>`, `scope`, and `<caption>`
  • Use `cellspacing="0" cellpadding="0" border="0"` on layout tables

Images

<img src="hero.jpg" alt="Product launch announcement: 50% off all subscriptions through March" width="600" height="300" style="display: block; max-width: 100%;">

**Rules:**

  • Every `<img>` must have `alt` attribute
  • Decorative images: `alt=""` (empty, not omitted)
  • Set explicit `width` and `height` - prevents layout shifts when images are blocked
  • Many email clients block images by default - alt text is the only fallback
  • Style images with `display: block` to prevent gaps in Outlook
  • Use `style="font-size: 14px; font-family: Arial, sans-serif; color: #333333;"` on the `<img>` tag - some clients display alt text using these styles

Links

<a href="https://example.com/subscribe" style="color: #005a9c; text-decoration: underline;">
  Subscribe to our accessibility newsletter
</a>

**Rules:**

  • Link text must be descriptive (no "click here" or "read more")
  • Always use `text-decoration: underline` - color alone can't distinguish links (WCAG 1.4.1)
  • Include `style` attributes directly on `<a>` tags - some clients strip `<style>` blocks
  • For CTA buttons, use the bulletproof button pattern (see below)

Bulletproof Buttons (Work in All Clients)

<table role="presentation" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td style="border-radius: 4px; background: #005a9c;">
      <a href="https://example.com/action" style="background: #005a9c; border: 15px solid #005a9c; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 4px; font-weight: bold;">
        <span style="color: #ffffff;">Get Started</span>
      </a>
    </td>
  </tr>
</table>

Headings

  • Use heading elements (`<h1>` through `<h6>`) for visual and semantic structure
  • Maintain heading hierarchy (don't skip levels)
  • Note: heading elements work in most email clients even where other semantic HTML is stripped

Language

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  • Always set `lang` attribute on `<html>` element
  • Include `xmlns` for XHTML compatibility (some email clients require it)

Dark Mode Adaptation

<!-- Meta tag for dark mode support -->
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">

<style>
  @media (prefers-color-scheme: dark) {
    .email-body { background-color: #1a1a1a !important; }
    .text-content { color: #e0e0e0 !important; }
  }
</style>

**Rules:**

  • Test contrast ratios in both light and dark modes
  • Some clients invert colors automatically - use `data-ogsb="ignore"` for Outlook.com to prevent unwanted inversions
  • Transparent PNGs work well in both modes; JPGs with white backgrounds look broken in dark mode

Reading Order

  • Email reading order follows the HTML source order (no CSS Grid reordering possible in email)
  • Single-column layouts are most accessible - multi-column requires careful `dir="ltr"` and table cell ordering
  • For RTL languages, use `dir="rtl"` on the `<html>` element and reverse table cell order

Framework Patterns

MJML

<mj-image src="photo.jpg" alt="Description of the image" />
<mj-button href="https://example.com" background-color="#005a9c" color="#ffffff">
  Accessible Button Text
</mj-button>

Foundation for Emails

<img src="photo.jpg" alt="Description" class="float-center">
<button class="button large" href="https://e
Read more
@community-access
Ships withaccessibility-agents

WCAG 2.2 AA enforcement for agentic coding, as a set of Agent Skills. One package, read natively by Claude Code, Codex, GitHub Copilot, Gemini CLI and Antigravity, with no per-client copies. Models forget accessibility while generating code.

Stars on GitHub

Momentum

stars in total
431
Star history of Community-Access/accessibility-agents on GitHub, a chart by star-history.com

Other skills on accessibility-agents.

More skills from other plugins.

api-review

api-review

Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…

@microsoft@microsoftInstall Skill
add-e2e-selectors

add-e2e-selectors

Add reliable @grafana/e2e-selectors to interactive elements and key containers in the Grafana frontend. Use when adding e2e…

grafanatoday78k
@grafana@grafanaInstall Skill
promptfoo-evals

promptfoo-evals

Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…

@promptfoo@promptfooInstall Skill
deepeval

deepeval

DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…

@confident-ai@confident-aiInstall Skill

Questions about kb-email-accessibility.

Which coding agents can use kb-email-accessibility?
kb-email-accessibility installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.