designwithfocus

HTML

HTML vs Text Emails: Layout against Plain Deliverability

By Design With Focus Team 6 min read
Two email windows, one with a simple layout and one with plain lines of text

Short answer

Send HTML and plain text as alternatives in one message when the mail system allows it. HTML can carry layout and images, within the CSS subset Gmail publishes. Plain text is a linear sequence of characters with no markup. Use text alone for a short note, and HTML when the layout has to survive in Gmail's rules.

Last verified against the sources listed below.

Key takeaways

  • RFC 2046 defines multipart/alternative as several versions of the same information.
  • Put the plainest part first and the richest part last. Readers see the last part they can display.
  • Plain text does not allow formatting commands, font attributes, or content markup.
  • Gmail removes style blocks that are not in the head, and blocks past 16,384 characters.
  • Gmail's unsupported list includes position, flex, grid, and box-shadow.
  • A plain-text part still matters when images are blocked or styles are stripped.

HTML vs text emails comes down to one verdict: send both when you can, with plain text first and HTML second. RFC 2046 defines multipart/alternative as several body parts that are alternative versions of the same information. The parts go in order of increasing faithfulness, and the recipient’s software should display the last part it supports.

HTML is how you get columns, links, and images. Plain text is how the same words survive when styles or images are removed. HTML in a browser is a wider language than HTML in a mailbox. Gmail publishes the subset it keeps.

HTML and text side by side

HTML adds markup and style, while text is the characters alone. These rows use Gmail’s CSS support note, RFC 2046, and the W3C and WebAIM pages on text people must be able to see. No row invents a typical kilobyte size.

HTML email Text email
Layout Tables for columns. Gmail removes flex, grid, and position. No formatting commands or content markup. Characters in a line.
Images Background images from http, https, or cid. They can be stripped until the reader displays images. The text body has no content markup, so it is not an image layout.
Screen readers Markup can carry structure. Color-only meaning still fails for people who cannot see it. A linear sequence of characters, with line breaks as CRLF.
File size Tags plus style. Combined style blocks over 16,384 characters are discarded by Gmail. The characters of the message. No style block, so no 16,384-character style cap.

RFC 2046 calls text/plain a generic subtype for plain text. Plain text does not provide formatting commands, font attributes, processing instructions, or content markup. It is a linear sequence of characters, possibly interrupted by line breaks. The canonical line break is CRLF.

Gmail says you can style HTML mail with inline style attributes and with style blocks in the head. For non-Google accounts in the Gmail mobile apps, it removes those style blocks and media queries and keeps inline styles only. That split is why a critical layout rule belongs in an inline style, not only in the head.

How Gmail limits CSS

Gmail keeps a subset of CSS and deletes the rest during sanitization. The document, updated 2026-11-24 UTC, says support still varies by client, account type, and theme.

Style blocks have to live in the head. The combined text of all style blocks cannot pass 16,384 characters, or Gmail discards the block that crosses the line and any blocks after it. A CSS syntax error discards the whole block. External stylesheets, @import, and @font-face are removed.

For layout, Gmail tells you to use HTML table elements for multiple columns. Its unsupported list includes position, flex, grid, justify-content, align-items, gap, box-shadow, transform, transition, and CSS custom properties. This guide names only properties that list includes. It does not claim the same ban in every other inbox.

Media queries are narrower too. Gmail supports the media types all and screen, and the keywords and and only. It removes a query that uses prefers-color-scheme, and it removes negative margins. Those are Gmail’s rules, from that page, not a universal CSS chart.

Images, color, and people who cannot see them

Images in HTML mail are optional for the recipient, even when your markup is valid. Gmail supports url() and image-set() only on background and background-image, from public http or https URLs or from cid: attachments. If images are blocked, it strips those url() values until the person displays images. Include a background-color so the words stay readable.

Plain text never depended on that image fetch. The words are the body. That is the deliverability side of the comparison: fewer moving parts, and no style block for a gateway to throw away.

People who read with a screen reader, or who cannot see color, still need the words. WCAG 2 treats text, images, and the markup that defines structure as content. WebAIM says color cannot be the only way you convey meaning, and that text needs enough contrast with its background.

A green “success” with no word is weak in HTML mail. The text part can say “paid” without the color. Web accessibility covers the wider rules. In email, the practical move is a text alternative that states the same facts.

When to choose one, the other, or both

Choose both for a newsletter or a receipt. RFC 2046 says composers of multipart/alternative must order parts from least preferred to most preferred, with the preferred format last. For fancy text, that means the plainest format first. The receiving software should show the last format it can display, not every format at once.

Choose HTML alone only when you control the client and you have checked Gmail’s list. Put the layout in tables, put essential styles inline, and keep the style block under the character cap. Choose text alone for a short personal note, a password reset line, or any message that must read the same if every style is removed.

A word counter helps you keep the plain part short enough to read. It does not check CSS. Use it on the words, then check the HTML against Gmail’s property list before you send.

Mistakes that drop the design

These failures show up in the Gmail document and in RFC 2046. They are about structure, not about a secret spam score.

Mistake What happens
Style block in the body Gmail removes style blocks that are not in the head.
Style blocks over 16,384 characters Gmail discards the block that exceeds the cap and later blocks.
Flex or grid for columns Gmail removes those properties. Use a table.
HTML only, no text part Readers that need the plain alternative do not get one.
Meaning only in an image or a color The text part, and people who cannot see the color, miss the fact.

Write the plain part first, in your own words, then build the HTML to match it. If the two parts disagree, you do not have alternatives. You have two different messages, and RFC 2046’s type is the wrong label for that.

Frequently asked questions

Does multipart/alternative show both versions to every reader?

RFC 2046 says each part of multipart/alternative is another version of the same information, and the user should not automatically be shown multiple versions. Systems should pick the last part they know how to display. The plainest part is placed first so older readers that ignore MIME still have a chance to show text. A conformant reader is expected to choose, not to stack every part in the window.

Where do style blocks have to sit for Gmail?

Gmail's CSS document says it extracts style blocks from the head element and removes style blocks placed in the body. The combined content of all style blocks cannot exceed 16,384 characters. A syntax error causes Gmail to discard the whole style block. External stylesheets, import rules, and font-face rules are removed. When someone prints the message or opens it in full, Gmail applies inline style attributes and omits the style blocks.

Can I use flexbox or grid in an email to Gmail?

Gmail's property limitations list flex, grid, justify-content, align-items, and gap among properties it removes. The same section says to use HTML table elements for multi-column layouts. Position, top, right, bottom, left, z-index, box-shadow, transform, and transition are on that unsupported list too. A property that is absent from Gmail's supported table is not a safe choice for Gmail, even if it works in a browser.

What character set does plain text use if none is set?

RFC 2046 says the default character set for text/plain, when no charset parameter is present, is US-ASCII. The charset parameter is not case sensitive. Line breaks in MIME text must be CRLF. SMTP, which the RFC points at for a transport limit, allows a maximum of 998 octets before the next CRLF. A long line with no break has to be encoded for that kind of transport.

Are background images the same as photos in the message?

Gmail says it supports url and image-set only in the background and background-image properties, using public http or https URLs or cid attachment references. It rewrites data URLs to an empty url. If the recipient blocks external images, or Gmail flags the message, those url values are stripped until images are displayed. The document tells you to include a background-color so text stays legible. That is a fallback color, not a second copy of the photo.

Sources