Skip to the page
html email reference · client quirks

Preheader text in HTML email

type
hidden markup pattern
applies to
the start of the email body
screen reader effect
read normally, since it is real text, just visually hidden
common values
display:none; max-height:0; overflow:hidden;

Where it goes

Immediately inside <body>, before the visible layout tables begin.

Example

<body>
  <div style="display:none; max-height:0; overflow:hidden;">
    Your order has shipped — track it inside.
  </div>
  <table role="presentation" width="100%">...</table>
</body>

Open this example in the editor →

Common mistakes

  • Forgetting it entirely — the inbox preview then shows the first visible text in the email, often something unhelpful like a "having trouble viewing this?" link.
  • Writing a preheader shorter than what most inbox previews display — some clients pad the empty space by pulling in whatever text comes right after it, showing an odd trailing fragment.

Related

Updated 24 October 2026. Practice it in the html email route, or read more on MDN.