AMP for Email accordions allow users to expand and collapse content sections, letting them quickly scan and dive deeper only where they choose. They are perfect for driving engagement and presenting long-form content without overwhelming your audience.
When I was reviewing lead flows at a FinTech startup launching its first lead nurturing campaigns, I noticed a lot of long-form content — and knew immediately there was work to be done. One email in particular was a Q&A aimed at clarifying financial terms to an audience with varying levels of financial literacy. It was daunting. Implementing a simple accordion increased engagement metrics by almost 200% as users interacted with each section, and drove 27% more traffic to the website.
An accordion is a UI (user interface) pattern where multiple sections of content are stacked vertically. Each section has a header (or "title"), and clicking the header reveals the hidden content below. In AMP for Email, the accordion behaves exactly the same — but it uses the <amp-accordion>
element instead of JavaScript.
Here are a few practical reasons to use accordions inside an email:
Use Case | Example |
---|---|
FAQs | Expand answers only when needed |
Product Details | Show more product features/specs |
Course Descriptions | Show more product features/specs |
Promotions | Hide/show terms and conditions |
The AMP team provides a specific element: <amp-accordion>
Inside the <amp-accordion>
, each expandable section is wrapped in a <section>
.
Each <section>
must contain a heading tag (<h1>
through <h6>
) and a container for the expandable content (like a <div>
or <p>
).
✅ AMP will automatically handle the expand/collapse behavior.
✅ No extra JavaScript, CSS, or accessibility code is needed.
In your email's <head>
, you must include the amp-accordion
script:
<script async custom-element="amp-accordion" src="https://cdn.ampproject.org/v0/amp-accordion-0.1.js"></script>
Here is a fully working AMP accordion you can plug into the <body>
of your email.
<amp-accordion> <!-- this is the required AMP element -->
<section>
<h4>Question 1: What is AMP for Email?</h4>
<p>AMP for Email lets you create dynamic, interactive content inside emails using AMP components instead of JavaScript.</p>
</section>
<section>
<h4>Question 2: Why should I use an accordion?</h4>
<p>Accordions keep emails cleaner by letting users expand only the content they are interested in.</p>
</section>
<section>
<h4>Question 3: Is this mobile responsive?</h4>
<p>Yes! AMP accordions are responsive by default, making them great for both desktop and mobile readers.</p>
</section>
</amp-accordion>
<section>
must have a heading (<h1>
to <h6>
) and a content container (<div>
, <p>
, etc.).expanded
attribute:
<amp-accordion expanded>
<section>
<h4>Question 1: What is AMP for Email?</h4>
<p>AMP for Email lets you create dynamic, interactive content inside emails using AMP components instead of JavaScript.</p>
</section>
</amp-accordion>