Fact-checked by Grok 2 weeks ago

HTML email

HTML email refers to electronic messages formatted using , which enables the inclusion of rich content such as images, hyperlinks, styled text, and interactive elements, in contrast to emails that lack visual formatting. This approach enhances user engagement and branding by allowing for visually appealing designs, while relying on the standard to encapsulate HTML content within email protocols. Introduced in the alongside the rise of web technologies, HTML email marked a shift from purely textual communication to more dynamic formats, incorporating features like fonts, colors, and basic layouts to improve readability and marketing effectiveness. Despite its advantages, HTML email development faces significant challenges due to inconsistent rendering across email clients, such as limited support for modern CSS properties and , which necessitates the use of outdated techniques like table-based layouts and inline styles for compatibility. Standards like RFC 2110, published in 1997, provide guidelines for embedding documents and linked resources (e.g., images) in emails via the multipart/related type, ensuring better interoperability while addressing issues like relative URI resolution. Best practices emphasize creating responsive designs that adapt to mobile devices, incorporating accessibility features such as and alt text for images, and always including a plain-text fallback version to reach users with limited support. Over time, HTML email has evolved with partial adoption of and advanced CSS in the 2000s and beyond, supporting elements like for responsive layouts and semantic tags for improved structure, though full web-like functionality remains constrained to prevent security risks like malicious scripts. Today, it powers the majority of marketing and transactional emails, with tools for testing across clients ensuring higher deliverability and engagement rates, while authentication protocols like , DKIM, and help avoid spam filters.

Overview and History

Definition and Purpose

HTML email refers to electronic mail messages that incorporate to structure and format content, enabling the inclusion of elements such as headings, paragraphs, lists, images, hyperlinks, and styled text beyond the limitations of . This format leverages the text/html media type defined in RFC 2854, which specifies HTML as a (Multipurpose Internet Mail Extensions) content type for use in email transmissions, allowing email clients to render the markup into visually structured output. Unlike emails, which adhere strictly to the basic Message Format outlined in RFC 5322 and contain only unformatted ASCII text, HTML emails support semantic markup for improved presentation and interactivity. The primary purpose of HTML email is to enhance user engagement and communication effectiveness by delivering visually appealing and interactive , particularly in , newsletters, and transactional communications. It allows senders to incorporate elements like embedded images and clickable buttons, which can increase open rates, click-through rates, and overall recipient interaction compared to alternatives. For instance, businesses use emails to create branded layouts with colors, fonts, and responsive designs that adapt to various devices, thereby improving and while facilitating advanced features such as integration for . This format also supports the multipart/alternative structure (per RFC 2046), enabling emails to include both and versions, ensuring fallback rendering for clients that do not support . Furthermore, HTML email serves to bridge the gap between web-like experiences and traditional , promoting better information and through structured elements like tables for and inline CSS for basic styling, despite the constrained environment of email clients. Its adoption stems from the need to convey complex information efficiently, such as in promotional campaigns where visual cues drive conversions, while maintaining compatibility with email standards to avoid delivery issues. Overall, the purpose extends to fostering professional and personalized communications that align with modern digital expectations, without requiring external links or attachments for basic formatting.

Historical Development

The development of HTML email traces its roots to the evolution of email standards in the early 1990s, when limitations prompted extensions for richer content. The (), first proposed in 1341 in June 1992, enabled the inclusion of non-textual data in messages by defining a framework for multipart and alternative content types. This laid the groundwork for embedding formatted content, as subsequent specifications in 2045 (November 1996) formalized the structure for message bodies, including support for subtypes like text/html. The specific media type for , "text/html," was officially defined in RFC 1866 in November 1995, aligning with the release of HTML 2.0 and enabling its transport via in contexts. This standard, developed by the IETF HTML Working Group, emphasized HTML's compatibility with email protocols, restricting features to ensure interoperability with early MIME implementations. In 2000, RFC 2854 further refined the text/html type, obsoleting earlier definitions and transferring stewardship to the W3C while noting its integral role in since the mid-1990s. Early adoption of HTML email occurred through pioneering email clients in the late 1990s. 4.0, released in 1997, introduced HTML formatting capabilities in its Messenger component, allowing users to compose and view emails as HTML-based pages with basic styling and links. Similarly, 98, launched in 1998, added native support for HTML bodies, including stationery and embedded images, marking a shift from rich text to web-like email experiences. These implementations popularized for and personal use, though inconsistent rendering across clients highlighted the need for further standardization. To address challenges with linked resources in emails, the specification emerged in 2110 (March 1997), defining MIME encapsulation for aggregate documents like with embedded objects using multipart/related structures and headers such as Content-Location. This standard, updated in 2557 (March 1999), facilitated self-contained emails, reducing dependency on external fetches and improving deliverability. By the early , email had become widespread, but rendering divergences—exemplified by 2007's switch to the Word rendering engine—continued to influence development toward more robust, backward-compatible practices.

Technical Standards

MIME and Email Formats

MIME, or , extends the original Internet Message Format defined in RFC 5322 to support non-ASCII text, multimedia content, and structured message bodies beyond plain text. Introduced in RFC 1341 and formalized in RFCs 2045–2049, MIME uses headers like Content-Type and Content-Transfer-Encoding to specify the format and encoding of email body parts, ensuring compatibility across diverse email systems. For , MIME is essential, as it allows the inclusion of formatted content while maintaining transport safety through encodings such as or for binary data. The primary media type for in is text/html, registered in 2854, which obsoletes earlier specifications and delegates HTML syntax to W3C standards like HTML 4.01. This type requires no mandatory parameters but strongly recommends the charset parameter (e.g., charset="") to define , preventing display issues in international contexts. Line breaks in text/html must use CRLF sequences, and non-ASCII content is encoded to comply with 7-bit transport limitations. Emails containing only HTML typically declare Content-Type: text/html in the message body, but best practices include providing a plain-text alternative to ensure . To support alternatives, MIME employs the multipart/alternative content type, allowing multiple representations of the same content—such as text/plain and text/html—in a single message, with clients selecting the preferred version based on capability. For example, a message might structure its body as:
Content-Type: multipart/alternative; boundary="boundary123"

--boundary123
Content-Type: text/plain; charset="UTF-8"

Plain text version.

--boundary123
Content-Type: text/html; charset="UTF-8"

<html><body>HTML version.</body></html>
--boundary123--
This format, outlined in RFC 2046, promotes interoperability by letting non- clients fall back to . For emails with embedded resources like images, the multipart/related content type, defined in RFC 2387, aggregates interrelated body parts into a compound object. The root part is typically text/html, with subsidiary parts (e.g., image/gif) referenced via Content-ID (cid:) URLs or Content-Location headers, as specified in RFC 2557 for ( Encapsulation of Aggregate Documents). This structure ensures self-contained messages, avoiding external dependencies that could break rendering. A typical multipart/related example includes a start parameter pointing to the root:
Content-Type: multipart/related; type="text/[html](/page/HTML)"; start="<root>"

--boundary456
Content-Type: text/[html](/page/HTML); Content-ID: <root>

<html><img src="cid:image1"></html>
--boundary456
Content-Type: image/[gif](/page/GIF); Content-ID: <image1>; name="logo.gif"
[Binary image data]
--boundary456--
RFC 2557 emphasizes using absolute or relative URIs for internal references, enabling offline viewing while preserving document integrity. Often, emails combine these with multipart/mixed for attachments, creating nested structures like multipart/mixed containing multipart/alternative (for text/) and additional parts for files. All multipart boundaries must be unique strings to delimit parts reliably, and the MIME-Version: 1.0 header signals compliance. These formats, governed by IETF standards, balance richness with the constraints of email transport protocols like SMTP.

HTML Structure in Emails

HTML emails incorporate content through the framework, which extends the basic RFC 5322 email format to support non-textual and formatted elements. This structure begins with a MIME-Version: 1.0 header to indicate compliance, followed by a Content-Type header specifying the overall message type. The portion is treated as a distinct body part with the media type text/html, allowing email clients to render it as formatted content rather than . The text/html encapsulates HTML documents, which typically start with an <html> or a DOCTYPE declaration referencing standards like HTML 4.01 or 1.0. A charset parameter in the Content-Type header, such as charset="[UTF-8](/page/UTF-8)", specifies the to handle international text; without it, the default is US-ASCII for contexts, though is strongly recommended for broader . Line endings in the HTML content must use canonical CRLF ( followed by line feed) sequences to ensure consistent parsing across systems. The Content-Transfer-Encoding header, often set to [quoted-printable](/page/Quoted-printable) or [base64](/page/Base64), encodes the HTML to comply with email transport limitations like 7-bit clean channels. To provide accessibility, HTML emails frequently employ the multipart/alternative content type, which includes parallel body parts offering the same information in different formats—typically a fallback text/plain part alongside the text/html part. This subtype uses a boundary parameter to delineate parts, allowing clients to select the preferred rendering based on capabilities; for instance, text-only clients display the plain version while others render the HTML. A basic example of such a structure is:
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="[boundary](/page/Boundary)123"

--[boundary](/page/Boundary)123
Content-Type: text/plain; charset=[UTF-8](/page/UTF-8)

Plain text version of the message.

--[boundary](/page/Boundary)123
Content-Type: text/[html](/page/HTML); charset=[UTF-8](/page/UTF-8)

<html>
<head><title>Email</title></head>
<body><p>[HTML](/page/HTML) version of the message.</p></body>
</html>

--[boundary](/page/Boundary)123--
For emails with embedded resources like images or stylesheets, the E-mail Encapsulation of Aggregate Documents () standard uses multipart/related to bundle the root document with subsidiary parts. The root part, designated by a type="text/[html](/page/HTML)" parameter in the Content-Type header, references resources via URIs in Content-Location or Content-ID headers; for example, an <img src="cid:image1"> links to an inline part identified by Content-ID: <image1>. This nested structure ensures self-contained messages that render correctly without external fetches, adhering to email security constraints. Relative URIs are resolved against the root document's location, promoting portability.

Compatibility and Rendering

Email Client Support

Email client support for HTML emails is highly variable, as different clients use distinct rendering engines that interpret and to varying degrees of fidelity. This inconsistency often requires developers to test across multiple platforms to ensure consistent display. As of September 2025, the most prevalent email clients globally include (encompassing and macOS versions) at 46.21% market share, followed by at 24.17%, at 3.52%, at 2.22%, and Google Android at 1.13%, based on analysis of over 1.2 billion email opens. Support levels can be quantified by the number of and CSS features a client handles effectively out of a comprehensive set of 302 tested attributes. As of November 2025, on macOS leads with 287 supported features, demonstrating near-complete compatibility with modern standards, while on follows closely at 286. Gmail's webmail version supports 223 features, providing solid baseline rendering but with notable gaps in advanced styling. on Windows lags significantly at 183 out of 302, largely due to its reliance on the rendering engine, which prioritizes document-like layouts over web standards. Mail's webmail scores 252 out of 302, offering moderate support but inconsistent with complex elements. Other clients, such as Samsung Email on (267 out of 302) and on macOS (290 out of 302), show stronger adherence to standards among and alternatives.
Email ClientSupported FeaturesTotal TestedSource
Apple Mail (macOS)287302CanIEmail Scoreboard
Apple Mail (iOS)286302CanIEmail Scoreboard
267302CanIEmail Scoreboard
Mozilla Thunderbird (macOS)290302CanIEmail Scoreboard
Gmail (Desktop Webmail)223302CanIEmail Scoreboard
Yahoo Mail (Desktop Webmail)252302CanIEmail Scoreboard
Outlook (Windows)183302CanIEmail Scoreboard
Basic HTML elements enjoy broad compatibility across major clients, enabling core functionality like text formatting and , though advanced or layout-specific tags often require workarounds. For instance, universally supported tags include <b> for bold text, <i> for italics, <a href> for hyperlinks, <ul> and <ol> for lists, and <img> for images, which render consistently in , , , , , and . However, <table> for layouts receives only partial support in and due to rendering quirks, while <div> and <span> face similar limitations in 's Word-based engine. Forms via <form> are unsupported in all listed clients, as email protocols prohibit interactive submissions for security reasons. excels in handling semantic elements and most CSS3 properties, thanks to its engine. Gmail, powered by a customized Blink engine, strips CSS from the <head> and mandates inline styles, but it reliably supports for responsive design on mobile. Outlook's desktop applications (2007–2019 and ) use the Word HTML renderer, which mishandles floats, positions, and modern box models, often necessitating table-based layouts instead of CSS grids or flexbox—though its web and mobile versions (using or ) perform better. has improved since its 2007 redesign but still falters on nested CSS and certain pseudo-classes. To mitigate these disparities, developers rely on tools like CanIEmail for feature-specific checks and platforms such as for cross-client previews.

Common Rendering Issues

HTML email rendering issues arise primarily from the fragmented ecosystem of email clients, each employing different rendering engines and levels of HTML and CSS support. For instance, often uses the rendering engine for desktop versions from 2007 through , leading to quirks like ignored CSS properties, while web-based clients like leverage Blink-based rendering with selective CSS compliance. This inconsistency stems from email clients prioritizing security and performance over full web standards adherence, resulting in over 100 unique rendering paths when factoring in operating systems, devices, and image loading states. One prevalent issue is the inconsistent handling of CSS padding and margins, particularly in , where these properties are frequently ignored, causing elements to overlap or misalign. Developers mitigate this by relying on HTML table attributes like cellpadding and cellspacing or inserting "ghost tables" for spacing. Similarly, background images via CSS are unsupported in most desktop versions, necessitating (VML) fallbacks to ensure visibility. Font rendering poses another challenge, as clients like default to and disregard custom font stacks, while and may substitute unavailable web fonts inconsistently, affecting design intent and accessibility. To address this, inline styles with widely supported fonts such as are recommended, often combined with attribute selectors for Outlook-specific overrides. Animated GIFs also fail in older clients, displaying only the first frame, which can disrupt dynamic content; including essential information in the static frame serves as a . Layout and responsiveness issues emerge across clients, with multi-column designs breaking in due to poor <div> , favoring tables for structure instead. In , CSS may be clipped if exceeding 102,400 characters, truncating styles and causing incomplete rendering. occasionally converts formatted elements like phone numbers into hyperlinks or displays as if issues arise. Mobile adaptations falter when are unsupported, leading to non-stacking columns on smaller screens. Additional problems include unwanted white lines in table-based layouts, a quirk in Outlook 2016 attributable to rendering, fixable with even dimensions and border-collapse: collapse declarations. Link styling is stripped in some clients if URLs lack , and images may distort or fail to scale without explicit width/height attributes. Dark mode in clients like inverts colors unexpectedly, requiring CSS @media (prefers-color-scheme) adjustments, though support remains patchy. Image blocking by default in many clients further alters layouts, emphasizing the need for text-based fallbacks.

Styling and Design

CSS Usage and Limitations

CSS in HTML emails is primarily applied through inline styles directly on HTML elements, as this method ensures the broadest across email clients. Inline CSS, using the style attribute, is universally supported because it is embedded within the HTML markup and not reliant on external loading or parsing of separate style blocks. For instance, properties like color, font-family, font-size, and text-align work reliably when inlined. This approach avoids many rendering issues but requires manual application to each element, increasing code verbosity. Embedded CSS, placed within <style> tags typically in a second <head> section (due to some clients stripping the first <head>), achieves an estimated 78.26% support across email clients. This allows for more efficient styling of multiple elements using selectors, but limitations include a 16 KB size cap in some clients and the need for the "double head" to prevent stripping. External CSS via <link> tags has very low adoption, supported in only about 21% of clients, as most email clients block external resources for reasons to prevent tracking or malicious loading. Support for specific CSS properties varies significantly, leading to inconsistent rendering. Basic layout properties like padding, border, and vertical-align are widely supported (over 90% in major clients), enabling table-based designs that remain the standard for email layouts. Background images via background-image enjoy 90.69% support, though they require at least one <img> tag in the email for proper downloading in some clients like Gmail, and gradients may fail inline in Gmail on Android. Typography features such as @font-face for custom fonts have partial support (around 24%), with fallbacks to system fonts recommended due to poor uptake in clients like Gmail. Advanced layout techniques face substantial limitations. CSS Flexbox (display: flex) has 82.93% estimated support but is not available in older Windows versions (2007–2019), which use the Word rendering engine and favor VML for complex visuals; inline-flex is universally unsupported. CSS Grid (display: grid) fares worse at 56.1% support, reliable only in and newer mobile/web versions of , , and , making it unsuitable for broad compatibility. Media queries for responsive design achieve 80.48% support but are limited to basic width/height queries in many clients, with no nesting in and height-based queries often failing; they must be embedded and may require the double <head> workaround. Other modern features are even more restricted. CSS custom properties (variables) have just 45.24% support, working in and most / versions but failing entirely in desktop Windows and macOS. Animations, transitions, and pseudo-elements like ::before/::after lack support in nearly all clients, particularly and older , due to security concerns over dynamic . Box-shadow and () functions have partial or low support (under 60%), often rendering blank or ignoring fallbacks. To mitigate these limitations, developers prioritize table-based layouts over CSS floats or positioning, which can break in (e.g., float unsupported in ). Testing across clients using tools like is essential, as even supported features may exhibit bugs, such as margin collapsing or selector specificity issues in . Overall, HTML email CSS emphasizes simplicity and inline basics to achieve reliable cross-client rendering, sacrificing modern web standards for deliverability and viewability.
FeatureEstimated SupportKey Supported ClientsKey Unsupported ClientsNotes
Inline CSS100%AllNoneUniversal; preferred method.
Embedded CSS (<style>)78.26%, , Older WindowsDouble <head> often needed; 16 KB limit.
External CSS~21% (partial), , most webmailsBlocked for security.
Flexbox (display: flex)82.93%, (mobile/web), Windows (2007–2019)No inline-flex.
(display: grid)56.1%, (mobile) Desktop, older Partial in some; avoid for layouts.
80.48%, most /Older , limited typesBasic width/height only; no nesting in .
CSS Variables45.24%, (Google accounts) Windows/macOSPartial declaration support.
Background-Image90.69%, , None majorRequires <img> for download in .

Best Practices for Design

When designing emails, prioritizing compatibility across diverse email clients is essential, as rendering engines vary significantly, with some like using outdated Word-based rendering. To achieve consistent display, developers should use table-based layouts instead of modern CSS methods like flexbox or grid, which lack broad support. Tables provide reliable structure for columns and nesting, ensuring emails render predictably on desktop and mobile devices. Inline CSS is a core best practice, embedding styles directly into (e.g., <td style="color: #333333; font-family: Arial, sans-serif;">) to bypass limitations in external or stylesheets, which many clients strip or ignore. This approach maximizes compatibility while keeping code simple; avoid complex selectors, shorthand properties (e.g., background: #000), or layout floats, as they fail in clients like and . For responsiveness, incorporate sparingly, such as @media screen and (max-width: 600px) { .[container](/page/Container) { width: 100% !important; } }, targeting designs that adapt to screen sizes without breaking fixed-width . Designs should adhere to a maximum width of 600-800 pixels to fit preview panes and avoid horizontal scrolling on most screens. Opt for single-column layouts to enhance readability, where over 50% of emails are opened, promoting scannability with ample and clear . Typography relies on web-safe font stacks like '[Arial](/page/Arial)', '[Helvetica](/page/Helvetica)', [sans-serif](/page/Sans-serif) to ensure fallback rendering, with line heights of at least 1.2-1.5 times the font size for legibility. Images must be optimized and hosted externally with absolute URLs (e.g., https://example.com/image.jpg), compressed to under 100KB total file size to prevent loading delays and spam filter triggers. Always include descriptive alt text for accessibility, such as alt="Product image showing blue sneakers", to support screen readers and display when images are blocked. Background images should use fallback CSS colors, as support is inconsistent in clients like . Prominent calls-to-action (CTAs) enhance engagement; use bulletproof buttons constructed with VML for compatibility and styled tables for others, ensuring they contrast with the background and link directly to intended actions. Maintain an 80/20 text-to-image ratio to improve deliverability and readability, avoiding image-only content for critical information. is integral, incorporating tags like <h1> for headings, high-contrast colors (at least 4.5:1 ratio), and attributes where supported, to comply with standards like WCAG. Dark mode optimization involves using CSS prefers-color-scheme or luminance-based colors to prevent washed-out appearances in supporting clients like . Finally, rigorous testing across 90+ email clients and devices using tools like or Email on Acid is non-negotiable to identify rendering discrepancies early. Minify code to reduce size, declare a strict doctype (<!DOCTYPE html>), and preview in real inboxes to validate performance.

Advanced Features and Formats

Multipart Messages

Multipart messages in email utilize the Multipurpose Internet Mail Extensions (MIME) standard to encapsulate multiple body parts within a single email, enabling the transmission of diverse content types such as plain text and HTML versions of the same message. This approach ensures backward compatibility with simple text-only email systems while allowing for richer formats like HTML, where the email client selects the most appropriate part based on its capabilities. The MIME specification defines the overall structure through the Content-Type header, with the "multipart" type serving as the foundation for combining these parts, separated by boundaries to delineate each section. The most common subtype for HTML email is "multipart/alternative," which provides interchangeable representations of the content in escalating levels of complexity, ordered from simplest to most preferred. For instance, the first part might contain plain text (text/plain) as a fallback, followed by an HTML version (text/html) that includes formatting, links, and basic styling. Email clients are expected to render the last part they can interpret, typically prioritizing HTML if supported, to deliver the richest experience without duplicating display of alternatives. A typical structure for such a message uses a boundary delimiter, as shown in this example:
Content-Type: multipart/alternative; boundary="boundary-string"

--boundary-string
Content-Type: text/plain; charset="[UTF-8](/page/UTF-8)"

This is the plain text version of the message.

--boundary-string
Content-Type: text/[html](/page/HTML); charset="[UTF-8](/page/UTF-8)"

<html><body><p>This is the <b>[HTML](/page/HTML)</b> version of the message.</p></body></html>

--boundary-string--
This format allows senders to cater to diverse recipients, such as those using text-only clients or those preferring over visuals. For HTML emails incorporating embedded resources like images, the "multipart/related" subtype extends functionality by linking interdependent parts, where the root part (often text/html) references others via Content-ID (CID) URIs. The "type" parameter specifies the root's media type, and the "start" parameter identifies it by CID, ensuring the email client assembles the compound object correctly. This is particularly useful for inline images, referenced in HTML as <img src="cid:[email protected]">, with the corresponding image part included separately to avoid external dependencies that might be blocked by security settings. An example structure combines this with alternatives:
Content-Type: multipart/alternative; boundary="outer-boundary"

--outer-boundary
Content-Type: text/plain; charset="[UTF-8](/page/UTF-8)"

Plain text description.

--outer-boundary
Content-Type: multipart/related; boundary="inner-boundary"; type="text/html"

--inner-boundary
Content-Type: text/html; charset="[UTF-8](/page/UTF-8)"

<html><body><img src="cid:[email protected]" alt="Description"></body></html>

--inner-boundary
Content-Type: image/jpeg; name="image.jpg"
Content-ID: <[email protected]>
Content-Transfer-Encoding: [base64](/page/Base64)

[Base64-encoded image data]

--inner-boundary--
--outer-boundary--
This nested arrangement provides a fallback alongside a self-contained version with embedded media. In more complex scenarios, "multipart/mixed" serves as a container to combine alternatives with attachments, treating parts as a sequence rather than strict alternatives. While supports various other subtypes like "multipart/parallel" for simultaneous rendering, these are rarely used in HTML email due to concerns. Overall, multipart messages enhance email delivery by balancing expressiveness with reliability across email ecosystems.

Embedded Resources and Images

Embedded resources in HTML emails refer to assets such as images, stylesheets, or fonts included directly within the email's structure rather than linked externally, ensuring they display without requiring additional network requests from the recipient's client. This approach leverages the multipart/related content type, defined in RFC 2387, which aggregates related body parts into a single compound object for cohesive rendering, particularly useful for documents referencing internal components like images via Content-ID () references. The primary method for embedding images uses CID attachments within a multipart/related envelope. The image file is attached as a separate body part with a unique Content-ID header (e.g., Content-ID: [email protected]), and the HTML references it using a scheme in the img src attribute, such as <img src="cid:[email protected]" alt="Company Logo">. This technique, rooted in standards (RFCs 2045-2049), allows email clients to resolve and inline the image without external dependencies, improving reliability in environments where image loading is disabled by default. An alternative embedding method employs data URIs as specified in RFC 2397, where the image data is base64-encoded and inserted directly into the HTML, for example: <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==" alt="Pixel">. This "inline" approach embeds small resources without separate MIME parts, reducing complexity for simple cases but significantly increasing the email's overall size due to base64 overhead (approximately 33% larger than binary). Beyond images, other resources like CSS stylesheets or web fonts can be embedded similarly using multipart/related with Content-Location headers to map URIs (e.g., <link rel="stylesheet" href="embedded.css"> referencing a text/css part), though email clients often strip or ignore external stylesheets for reasons, favoring inline CSS. Fonts embedded via @font-face with base64-encoded data in inline styles work in a of clients, such as , but face broad incompatibility. Embedding offers advantages like guaranteed display in privacy-focused clients that block external content and avoidance of tracking pixel issues, but it bloats message size—critical since emails over 102 KB risk clipping in —and raises spam filter risks due to larger payloads. Compatibility remains inconsistent: is supported in desktop clients like (desktop versions) and , and in such as , but images (embedded or external) are often blocked by default in for until the sender is trusted. Data URIs fare worse, with Outlook blocking them entirely and Gmail rendering placeholders or alt text instead of the image, limiting support across major clients as of 2025; they are best reserved for tiny icons under 10 KB. For broader reach, linked external images (via https: URLs) are recommended over embedding, hosted on reliable CDNs to mitigate loading failures. Best practices include optimizing images to under 200 KB using JPEG or PNG formats, always providing alt text for accessibility, and testing across major clients to ensure fallback rendering.
MethodOutlook (Desktop)GmailApple MailProsCons
CIDSupportedBlocked by defaultSupportedReliable in desktop; no external loadLarger size; webmail requires user enablement
Data URIBlockedBlockedSupportedSimple for small assetsSize bloat; limited client support

Performance Considerations

Message Size Impacts

The size of an email message, which encompasses the HTML code, inline CSS, embedded images, and any attachments, significantly influences various aspects of email handling and user interaction. Larger messages, often exceeding 100KB for the portion alone, can strain email infrastructure and client capabilities, leading to suboptimal outcomes in delivery and rendering. Factors contributing to increased size include uncompressed images, excessive from tables-based layouts, and multiple font embeddings, all common in HTML email . One primary impact is on deliverability, where oversized messages risk rejection, delay, or diversion to folders by internet service providers (ISPs) and email clients. For instance, emails with an weight over 100KB may trigger filters, with tests showing consistent failures across multiple filters for sizes between 110KB and 650KB. specifically clips messages exceeding 102KB, prompting users to the full manually, which can reduce open rates and . recommendations emphasize keeping the total message under 3MB and under 80-100KB to ensure reliable inbox placement, as larger files are often flagged due to perceived resource demands or suspicious payloads. Performance and are also adversely affected, particularly on devices and slower , where large messages prolong and rendering times. An average HTML email weighs around 45-53KB, but those approaching or surpassing 100KB can take seconds longer to load, potentially displaying as blank or incomplete previews that discourage interaction. This delay not only frustrates recipients but also correlates with higher deletion rates before full rendering. Additionally, excessive size contributes to broader resource burdens, such as increased costs for email providers and higher usage, which ISPs monitor to manage efficiency. While direct vulnerabilities tied to size are limited, large HTML emails with embedded resources can heighten suspicions if they include obfuscated code or attachments, indirectly elevating scrutiny from filters.

Optimization Techniques

Optimization techniques for HTML email focus on minimizing , enhancing rendering speed, and ensuring compatibility across diverse to improve deliverability, user engagement, and performance. These methods address limitations in support for modern web standards, such as partial CSS compliance and image loading behaviors, by prioritizing lightweight code and resources. Key strategies include code minification, resource compression, and layout choices that reduce computational demands during rendering. A primary technique is minifying HTML and CSS code to eliminate unnecessary whitespace, comments, and redundant characters, which can reduce by up to 20-30% without altering functionality. Tools like HTML Crush or EmailComb facilitate this process, helping keep emails under 100KB to prevent clipping in clients like and avoid spam filter triggers. Inline CSS is another essential practice, embedding styles directly into elements (e.g., <p style="font-size: 16px;">) rather than using embedded or external stylesheets, as many clients strip or ignore the latter for security reasons. This approach, while slightly increasing size, ensures consistent rendering across clients like and . Image optimization plays a critical role in , as images often constitute the bulk of email weight—sometimes exceeding 2MB in non-optimized designs. Compressing images using formats like for photos and for graphics, while removing unused frames from animated GIFs, can significantly lower load times; for instance, mobile-optimized emails average 2.7MB in image weight compared to 2.24MB for non-optimized ones, but further targets under 100KB total per . Setting explicit width and height attributes on images prevents shifts during loading, and using content delivery networks (CDNs) reduces by serving assets from geographically closer servers. Avoid custom web fonts, opting for web-safe stacks like 'Arial', [sans-serif](/page/Sans-serif) to bypass additional downloads that inflate size and delay rendering. For layout efficiency, rely on HTML tables with attributes like cellpadding and valign instead of CSS floats or flexbox, as tables render more reliably in clients and require less . Limit the use of background images, which are unsupported in some clients, and provide fallback text or solid colors to maintain and speed. Employ fluid, responsive designs with sparingly to adapt to mobile devices without adding excessive code branches that slow parsing. Testing tools like Previews allow measurement of load times across 100+ clients, revealing that emails under 80KB HTML weight load 20-50% faster, enhancing open and click rates. Advanced optimizations include for better client interpretation—using <h1> for headers and <p> for paragraphs—and bulletproof buttons for calls-to-action, which use VML for compatibility without compromising size. Preheader text, hidden via display: none, optimizes the preview snippet for higher engagement without visible impact. Overall, these techniques balance visual appeal with technical constraints, ensuring emails load in under 3 seconds on average connections.

Security and Privacy

Vulnerabilities

HTML email introduces several vulnerabilities that exploit its rendering capabilities, potentially compromising user privacy, enabling malicious code execution, and facilitating social engineering attacks. Unlike emails, HTML allows embedded images, , and scripts, which can be manipulated by attackers to user behavior or deliver threats. These risks arise because email clients vary in their handling of , with some disabling features like for security, while others may inadvertently expose users to exploits. A primary privacy vulnerability in HTML email is the use of tracking pixels, also known as web beacons or spy pixels, which are 1x1 invisible images embedded in the message body. When a recipient opens the email, the client automatically requests the image from a remote server, revealing the user's IP address, device type, operating system, approximate location, and the exact time of opening, often without consent. This data can be aggregated to build user profiles for targeted advertising or sold to third parties, exacerbating privacy erosion in email communications. For instance, free email providers have been observed leveraging such pixels to monetize user activity. Additionally, attackers can embed these pixels in phishing emails to confirm valid targets before further exploitation. Security risks include HTML injection and (XSS) attacks, where malicious HTML code is inserted into emails to alter content or execute scripts in vulnerable clients. In webmail interfaces like , unsanitized email content can lead to stored XSS, allowing attackers to run arbitrary in the victim's upon viewing the message, potentially stealing session cookies or keystrokes. Content spoofing complements this by injecting fake elements, such as forms, into legitimate-looking emails from trusted domains, tricking users into disclosing credentials. While most modern email clients block JavaScript by default to mitigate XSS, inconsistencies in rendering—such as improper handling of attributes in <img> tags—can still enable remote code execution in specific scenarios. Phishing attacks are amplified in HTML email through malicious links and attachments disguised as benign content. Attackers often attach HTML files that mimic pages for services like or , prompting users to enter sensitive information upon opening, which is then exfiltrated to attacker-controlled servers. indicates that up to 23% of HTML email attachments are malicious, making them a highly weaponized file type for bypassing traditional email filters and delivering payloads like or credential harvesters. These attachments exploit the trust in email as a communication medium, with over half of analyzed malicious files in some campaigns being HTML-based. In June 2025, Mozilla addressed CVE-2025-5986 in Thunderbird versions prior to 139.0.2, where crafted HTML emails using mailbox:/// links could automatically download files like PDFs without user consent, potentially leading to infection.

Mitigation Strategies

To mitigate security vulnerabilities in HTML email, such as (XSS) and malicious , major email clients employ built-in rendering restrictions that disable execution by default, preventing scripts from running within the email context. For instance, clients like , , and strip or ignore attacks that could exploit browser vulnerabilities if rendered unsafely. This approach aligns with recommendations for output encoding and sanitization, ensuring that untrusted content from emails cannot execute arbitrary code. HTML sanitization is another core strategy, where email rendering engines apply whitelisting to allow only safe tags (e.g., , , ) while escaping or removing potentially harmful ones like Web-based email services, such as those in , further enforce (CSP)-like rules during rendering to block unauthorized resource loads, mitigating risks from embedded iframes or forms that might attempt . Developers building custom email viewers, like webmail applications, should integrate libraries such as DOMPurify for sanitization to replicate these protections and avoid direct insertion of raw into the DOM. For privacy concerns, particularly tracking via embedded images or beacons, email clients block external resources by default, displaying placeholders instead of loading remote images, stylesheets, or scripts until user consent. Apple's Mail Privacy Protection feature, introduced in iOS 15 and macOS Monterey, enhances this by proxying image requests through Apple's servers, masking the recipient's IP address and preventing senders from accurately tracking opens or location data. Similarly, Gmail and Outlook offer settings to disable automatic image loading, which thwarts pixel-based tracking while preserving email readability. Senders can contribute to mitigation by adhering to secure development practices, such as avoiding , forms, or any interactive elements that could be misinterpreted as , and instead using static with inline CSS to eliminate external dependencies. Always include a plain-text alternative in multipart messages (per RFC 2046), allowing recipients to view content without rendering risks. For images, embed them as base64-encoded data URIs to avoid external fetches that enable tracking, though this increases message size and should be balanced with optimization. Additionally, validate and escape any dynamic content inserted into emails using functions like htmlspecialchars() to prevent injection vulnerabilities at the source. Broader ecosystem measures include email authentication protocols like SPF, DKIM, and DMARC to verify sender legitimacy and block spoofed HTML emails that mimic trusted sources for phishing. Organizations should deploy secure email gateways that scan for anomalous HTML patterns, such as obfuscated scripts or excessive embedding, before delivery. User education remains essential: advise hovering over links to inspect URLs, enabling two-factor authentication on accounts, and regularly updating email clients to patch rendering engine flaws. For high-risk environments, configuring clients to default to plain-text mode provides an additional layer of protection against HTML-specific threats.

Accessibility and Usability

Standards for Accessibility

Accessibility in HTML email is primarily guided by the (WCAG), developed by the (W3C), which provide internationally recognized standards for making web content, including HTML-based emails, accessible to people with disabilities. WCAG 2.1 and 2.2 emphasize four core principles known as POUR: Perceivable, Operable, Understandable, and Robust, with success criteria categorized into levels A, AA, and AAA, where AA conformance is commonly targeted for compliance. In the context of email, these guidelines adapt to the constraints of email clients, such as limited support for advanced and CSS, ensuring content remains usable across screen readers, keyboards, and varying display settings. Under the Perceivable principle, HTML emails must present information in ways users can perceive, regardless of sensory limitations. For instance, all non-text content like images requires equivalent alternative text (alt text) that is concise and descriptive, aligning with WCAG 1.1.1 (Non-text Content) at Level A. Color contrast ratios should meet at least 4.5:1 for normal text and 3:1 for large text, per WCAG 1.4.3 (Contrast Minimum) at Level AA, to aid users with low vision; tools like WebAIM's Contrast Checker are recommended for verification. Text should be resizable up to 200% without loss of functionality, avoiding fixed pixel-based sizing in favor of relative units like em or percent. The Operable principle ensures users can navigate and interact with email content effectively. Links must have descriptive text that conveys purpose in context, such as "View the full report" instead of "Click here," fulfilling WCAG 2.4.4 (Link Purpose) at Level A. Buttons and interactive elements should be sufficiently large (at least 44x44 pixels) and keyboard-accessible, with no reliance on color alone to indicate action, as per WCAG 1.4.1 (Use of Color) at Level A. Avoid auto-advancing or flashing content that could trigger seizures, adhering to WCAG 2.2.2 (Pause, Stop, Hide) at Level A. For Understandable content, HTML emails should use clear, predictable language and structure. Employ elements like <h1> to <h6> for headings to create a logical hierarchy, supporting WCAG 2.4.6 (Headings and Labels) at Level AA and aiding navigation. Text should be written in at a reading level accessible to most users (e.g., Flesch-Kincaid score of 60-70), with left-aligned paragraphs and line heights of at least 1.5 times the font size for readability. Avoid complex jargon or acronyms without explanation to ensure comprehension. The Robust principle requires compatibility with assistive technologies and parsers. Use valid markup, including proper table structures with <th> headers for data tables (avoiding layout tables marked with role="presentation"), to meet WCAG 1.3.1 (Info and Relationships) at Level A. Ensure the email renders consistently across clients by testing with tools like screen readers (e.g., NVDA or ) and avoiding unsupported features like certain CSS properties. In regulated contexts, such as U.S. federal communications, emails must conform to Section 508 of the Rehabilitation Act, which incorporates WCAG 2.0 Levels A and AA as enforceable standards. Similarly, under the Americans with Disabilities Act (ADA), commercial emails may need to meet WCAG 2.1 Level AA to avoid claims, though specific email requirements are interpreted through rather than explicit rules. Adhering to these standards not only promotes inclusivity but also improves deliverability and engagement, as accessible emails perform better in diverse client environments.

User Overrides and Preferences

In HTML email, user overrides and preferences refer to configurable settings within email clients that allow recipients to customize how messages are rendered, prioritizing , , and over the sender's intended design. These options enable users to mitigate issues such as visual clutter, risks, or compatibility with assistive technologies, ensuring emails remain usable even when elements are suppressed or altered. Common overrides include switching to mode, disabling external resources like images, and applying system-level features, which vary by client but are essential for inclusive experiences. A primary user preference is the choice between and plain text rendering, which directly overrides complex layouts, styles, and embedded media in favor of simplified, linear text. In , users can set the default message format to plain text via Preferences > Composing, converting incoming emails to readable text without scripts or formatting. Similarly, offers an option under File > Options > Mail to read all messages in plain text, stripping entirely for faster loading and better compatibility. Gmail users can enable plain text replies in Settings > See all settings > General, while allows conversion to plain text during or viewing via Tools > Options > Composition. These settings are crucial for users with cognitive disabilities or low-bandwidth connections, as they prevent overwhelming visuals and ensure content accessibility. Image loading represents another key override, often disabled by default in clients like and for and security reasons, rendering emails without external graphics unless users explicitly allow them. Users can toggle image display per sender or globally— for instance, in via Settings > See all settings > Images > "Always display external images," or in through View > Hide/Show Images— which forces reliance on alt text for . This preference is vital for screen reader users, as it ensures descriptive alt attributes convey image purpose without visual dependency; decorative images should use empty alt attributes (alt="") to avoid redundant narration. Without such overrides, image-only emails become inaccessible, highlighting the need for text-based critical content. Dark mode preferences, tied to operating system or client settings, allow users to invert colors for reduced , but implementation in emails requires respecting like @media (prefers-color-scheme: dark) to avoid overriding choices. In clients supporting it, such as , system dark mode automatically applies to emails, adjusting backgrounds and text for (minimum 4.5:1 ratio recommended). However, major clients like often strip these queries, preventing adaptive rendering and potentially causing readability issues for with low vision. Developers must use fallback colors and test across modes to honor preferences, as inverting sender designs without can violate standards. Font size and zoom overrides empower users to scale text for better legibility, with clients like and allowing increases up to 200% via built-in zoom tools or OS accessibility settings. Relative units such as or scale with these preferences where supported (e.g., in and most webmail), but fixed pixels in unsupported clients like older versions resist changes, underscoring the importance of minimum base sizes (14px desktop, 16px mobile). Additionally, reduced motion preferences via @media (prefers-reduced-motion: reduce) disable animations for users with vestibular disorders, though stripping by clients like limits effectiveness. These options, when combined with , ensure HTML emails adapt to diverse user needs without breaking functionality.

References

  1. [1]
    HTML Email Explained: Creation, Templates, Best Practices - Mailtrap
    Jul 10, 2024 · HTML email is a type of email that uses HyperText Markup Language (HTML) to create visually engaging messages with rich content, such as images, links, and ...
  2. [2]
    The History Of Email And Email Design | Martech Zone
    May 9, 2023 · The 1990s saw the introduction of HTML (HyperText Markup Language) in emails, allowing for fonts, colors, and basic layouts. This was the first ...History Of Email Design... · 1990s: The Introduction Of... · The Present And Html5
  3. [3]
    RFC 2110 - MIME E-mail Encapsulation of Aggregate Documents ...
    This document describes a set of guidelines that will allow conforming mail user agents to be able to send, deliver and display these objects, such as HTML ...
  4. [4]
    What Is an HTML Email Design? - Campaign Monitor
    HTML email design is just like HTML design for web pages. All manner of formatting information is added to the basic document by means of HTML code. Today ...
  5. [5]
    RFC 2854 - The 'text/html' Media Type - IETF Datatracker
    This document summarizes the history of HTML development, and defines the "text/html" MIME type by pointing to the relevant W3C recommendations.
  6. [6]
    RFC 5322 - Internet Message Format - IETF Datatracker
    This document specifies the Internet Message Format (IMF), a syntax for text messages that are sent between computer users, within the framework of electronic ...RFC 2822 · RFC 5321 · RFC 6854
  7. [7]
    HTML Email: Definition, Examples, and How to Create - Clean Email
    Rating 4.5 (3,300) Oct 29, 2024 · An HTML email is an email message formatted using the HyperText Markup Language. This standard markup language uses various elements, represented as tags, to ...
  8. [8]
    RFC 1341 - MIME (Multipurpose Internet Mail Extensions)
    RFC 1341 - MIME (Multipurpose Internet Mail Extensions): Mechanisms for Specifying and Describing the Format of Internet Message Bodies.<|control11|><|separator|>
  9. [9]
    RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One
    This set of documents, collectively called the Multipurpose Internet Mail Extensions, or MIME, redefines the format of messages.
  10. [10]
    The Evolution of Netscape Navigator: Browser to Internet Suite to ...
    Mar 6, 1997 · The e-mail messages are delivered as HTML-based pages. Messenger, Communicator's e-mail tool, allows users to format and filter e-mail messages.
  11. [11]
    Microsoft Outlook 98 - ITPro Today
    Outlook 97, like Exchange and Windows Messaging before it, supported rich text email but not HTML mail. Outlook 98 finally adds support for HTML email, as well ...
  12. [12]
    Outlook 2013 / 2016 / 2019 / 365 and Word HTML
    Jul 20, 2021 · Starting with Outlook 2007, Outlook uses only the Word engine to display and create HTML-formatted emails. There had been quite some fuss ...
  13. [13]
    RFC 2046 - Multipurpose Internet Mail Extensions (MIME) Part Two
    1. Representation of Line Breaks The canonical form of any MIME "text" subtype MUST always represent a line break as a CRLF sequence. · 2. Charset Parameter A ...
  14. [14]
    RFC 2854: The 'text/html' Media Type
    ### Summary of RFC 2854: The 'text/html' Media Type
  15. [15]
    RFC 2387: The MIME Multipart/Related Content-type
    ### Summary of Multipart/Related Content-Type and Its Use in HTML Email
  16. [16]
    RFC 2557 - MIME Encapsulation of Aggregate Documents, such as ...
    This document a) defines the use of a MIME multipart/related structure to aggregate a text/html root resource and the subsidiary resources it references.<|control11|><|separator|>
  17. [17]
    RFC 2557: MIME Encapsulation of Aggregate Documents, such as ...
    ... example is the simplest form of an HTML email message. This message does not contain an aggregate HTML object, but simply a message with a single HTML body part ...
  18. [18]
    Email Client Market Share and Popularity - Litmus
    September 2025 Email Client Market Share Report ; 1. Apple · 46.21% ; 2. Gmail · 24.17% ; 3. Outlook · 3.52% ; 4. Yahoo Mail · 2.22% ; 5. Google Android · 1.13%.
  19. [19]
    Can I email… Email Client Support Scoreboard - Caniemail
    This page ranks email clients based on their support among the 302 HTML and CSS features listed on Can I email. (Because every test is done manually, some ...
  20. [20]
    Supported HTML Tags in Common Email Clients - GetResponse
    Dec 27, 2024 · Check the table featuring commonly used tags, including their function and compatibility with different email clients.Universally Supported Html... · Html Tags With Limited Or... · Best Practices For Using...Missing: matrix | Show results with:matrix
  21. [21]
    Outlook Email Rendering Issues and How to Solve Them - Litmus
    Oct 27, 2023 · Interactive HTML emails are a big “no” for Outlook. They depend on either AMP coding or the checkbox hack, neither of which are supported on ...
  22. [22]
    Outlook HTML Emails: How to Fix 11 Common Rendering Issues
    This engine, originally designed for word processing, has limitations in interpreting modern HTML and CSS techniques commonly used in email design. Although ...
  23. [23]
    Why is email rendering so complex? - Litmus
    Apr 13, 2017 · The email marketing platform the brand uses, the subscriber's email client, and whether images are enabled or blocked dramatically affect email rendering.
  24. [24]
    Email rendering: Ensuring consistent email display across clients
    Sep 12, 2023 · Email rendering issues across clients · 1. Inconsistent font display: · 2. Broken images: · 3. Unresponsive layouts: · 4. Misaligned text and ...
  25. [25]
    Gmail HTML Email Development: Why Your CSS Is Not Working
    Having problems with Gmail CSS? Emails not rendering the way you expect? Get some tips for troubleshooting and coding HTML emails for Gmail.
  26. [26]
    The top 13 Outlook HTML email display issues (& how to fix them!)
    Oct 9, 2023 · 1. Random White Lines · Make sure font-size, line-height, padding, margin and any other coded pixel numbers are even instead of odd (seriously)
  27. [27]
    Can I email… background-image - Caniemail
    Notes. 1. Partial. Not supported with non Google accounts. 2. Buggy. Requires at least one <img> element in the email to download all images.
  28. [28]
    Can I email… <style> element
    An HTML element to contain style information, in CSS, for a document or part of a document. Estimated Support About. 63.04% + 15.22% = 78.26%. Apply settings
  29. [29]
    HTML and CSS in Emails: What Works in 2025? - Designmodo
    Jan 7, 2025 · These recommendations will help you generate appealing and efficient emails that work with the majority of email clients.Missing: matrix | Show results with:matrix
  30. [30]
    Can I email… display:flex
    Notes. 1. Not supported with non Google accounts. 2. display:inline-flex is not supported. Sponsor. Resend. Sponsored by Resend. Email for developers.
  31. [31]
    Can I email… display:grid
    Supported in Apple Mail. Partially supported in Gmail, Outlook. Not supported in Yahoo! Mail.
  32. [32]
    Can I email… @media - CanIEmail
    Supported in Apple Mail. Partially supported in Gmail, Outlook, Yahoo! Mail ... Email Client Support Scoreboard · Data available in JSON · Caniemail on GitHub ...Missing: score | Show results with:score<|control11|><|separator|>
  33. [33]
    Can I email… CSS Variables (Custom Properties)
    ### Summary of CSS Custom Properties (Variables) Support in Email Clients
  34. [34]
    CSS Support Guide for Email Clients [+Checklist] - Campaign Monitor
    The Ultimate Guide to CSS. A complete breakdown of the CSS support for the most popular mobile, web and desktop email clients on the planet. Try it for free.Border-radius · Background-image · Letter-spacing · in<|control11|><|separator|>
  35. [35]
    Email Marketing Design Best Practices: 17 Key Things to Know
    Nov 21, 2024 · Key email design best practices include using a modular design system, responsive design, and focusing on elements like headers, CTAs, and ...Missing: authoritative | Show results with:authoritative
  36. [36]
    HTML Email Best Practices for Marketers and Developers - Mailtrap
    Aug 8, 2024 · We collected the real-life proven HTML email best practices you should follow to increase email deliverability and meet your business goals.Missing: authoritative | Show results with:authoritative
  37. [37]
    HTML Email Best Practices - Templates - Mailchimp
    Keep email width 600-800 pixels, use basic fonts, code structure with tables, keep CSS simple, and use absolute image links.Missing: authoritative | Show results with:authoritative
  38. [38]
    HTML Email Development Best Practices: Rules to Code By
    Jun 8, 2023 · HTML email development is the process of coding, designing, testing, and troubleshooting original templates and campaigns for email marketing efforts.Html Email Coding Basics · Using Font Stacks In Html... · Using Media Queries In Email
  39. [39]
  40. [40]
  41. [41]
    RFC 2387: The MIME Multipart/Related Content-type
    The Multipart/Related content-type represents objects that are aggregates of related MIME body parts, intended for compound objects with inter-related parts.
  42. [42]
  43. [43]
  44. [44]
  45. [45]
    Embedding Images in HTML Email: Have the Rules Changed?
    Nov 2, 2018 · How to embed images in HTML emails properly? CID attachment, inline embedding, linked image, or any new technique? Read in our overview ...
  46. [46]
    RFC 2397 - The "data" URL scheme - IETF Datatracker
    The 'data' URL scheme allows inclusion of small data items as 'immediate' data, as if included externally, with the form data:[<mediatype>][;base64],<data>.
  47. [47]
    How to Embed Images in Email: CID, HTML Inline & Linked Images
    Oct 29, 2025 · Learn how to embed images in your email by linking out to the image on a CDN, referencing via a CID tag & linking to an image in HTML.
  48. [48]
    Different Ways to Include Related Images in HTML Email
    May 24, 2023 · There are a few different ways related images can be contained in the MIME of HTML email. The 1st is by Content-Location.
  49. [49]
    Embedding Images in HTML Emails - Campaign Monitor
    Apr 9, 2019 · Embedding an image into an email message is the act of adding the image into the coding of the email template for it to appear amongst the text.
  50. [50]
    Guide to Email File Size and Load Times - Litmus
    Apr 24, 2024 · Sending an email with an HTML weight of under 100KB has no impact on deliverability. In some cases, sending an email over 100KB may impact ...
  51. [51]
    How Does Email File Size Impact Deliverability? - Email on Acid
    Aug 25, 2014 · Email file sizes between 15KB-100KB are generally okay, but over 100KB can cause deliverability issues, failing spam filters.
  52. [52]
  53. [53]
    Why should you optimize the size of the emails you send? - EmailLabs
    Jul 13, 2022 · Large emails may not reach recipients, cause delivery issues, and may be blocked by providers. Large emails also cause slow loading times.<|control11|><|separator|>
  54. [54]
    Responsive Email Design | Email Code & Optimization
    In this guide to HTML email development, explore the fundamentals of creating an email for a mobile-friendly experience for responsive email designs.Coding Mobile Emails · Building Responsive Layouts · Optimizing Images For Mobile
  55. [55]
    Optimize Your Emails From Top to Bottom With These 27 Tips - Litmus
    Jan 18, 2023 · Make your sender name welcoming—don't use a 'no-reply' address · Use a sender name that's obviously from your brand · Don't stress about words ...Missing: techniques | Show results with:techniques
  56. [56]
    HTML5 Security - OWASP Cheat Sheet Series
    Never evaluate passed messages as code (e.g. via eval() ) or insert it to a page DOM (e.g. via innerHTML ), as that would create a DOM-based XSS vulnerability.
  57. [57]
    Pixel tracking: How to tell which emails track your activity - Proton
    Nov 22, 2024 · How to tell which emails track you with pixels · 1. Check email headers · 2. Use browser extensions · 3. Use Proton Mail for enhanced tracking ...What is pixel tracking? · How pixel tracking works · How to tell which emails track...
  58. [58]
  59. [59]
    Testing for HTML Injection - WSTG - Latest | OWASP Foundation
    HTML injection is a type of injection vulnerability that occurs when a user is able to control an input point and is able to inject arbitrary HTML code into a ...
  60. [60]
    Critical Cross-Site Scripting Vulnerability in Roundcube Webmail
    Aug 5, 2024 · When a victim views a malicious email in Roundcube sent by an attacker, the attacker can execute arbitrary JavaScript in the victim's browser.
  61. [61]
    Content Spoofing | OWASP Foundation
    Hypertext Markup Language (HTML) Injection · Attacker discovers injection vulnerability and decides to spoof a login form · Attacker crafts malicious link, ...
  62. [62]
    Barracuda Finds That 23% of HTML Email Attachments Are Malicious
    Apr 28, 2025 · The findings highlight how attackers continue to shift malicious links and content to attachments in the hope of evading detection by security tools.
  63. [63]
    Malicious HTML Attachments | HTML Smuggling - Kaspersky
    Yes, HTML files can contain viruses and other sorts of malware, including phishing scams and ransomware. This type of cyberattack is known as a malicious HTML ...
  64. [64]
    Over Half of Malicious Files are HTML Attachments - Avanan
    Jun 20, 2023 · Over 50% of these attachments are HTML files that masquerade as login pages of well-known services like Microsoft and Webmail, tricking users into divulging ...
  65. [65]
    Cross Site Scripting Prevention - OWASP Cheat Sheet Series
    This cheat sheet helps developers prevent XSS vulnerabilities. Cross-Site Scripting (XSS) is a misnomer. Originally this term was derived from early versions ...Missing: emails | Show results with:emails
  66. [66]
    Security requirements | Gmail - Google for Developers
    Oct 13, 2025 · To ensure user safety and privacy, dynamic emails are subject to additional security requirements and restrictions.
  67. [67]
    What is cross-site scripting (XSS) and how to prevent it? - PortSwigger
    To prevent XSS in HTTP responses that aren't intended to contain any HTML or JavaScript, you can use the Content-Type and X-Content-Type-Options headers to ...Reflected XSS · XSS context · Stored XSS · How to prevent XSS
  68. [68]
    How Email Tracking Works & How to Block it for Better Privacy
    Oct 17, 2025 · Learn how email tracking pixels monitor your behavior without consent. Discover proven methods to block tracking in Gmail, Outlook, ...
  69. [69]
    Legal - Mail Privacy Protection & Privacy - Apple
    Nov 6, 2024 · Mail Privacy Protection helps protect your privacy by preventing email senders from learning information about your Mail activity.Missing: HTML | Show results with:HTML
  70. [70]
    When Email Tracking Goes Wrong — And What to Look For
    Jan 23, 2019 · Turning off HTML Email. A more extreme tactic is to opt for plain-text emails only, an approach that prevents tracking codes from being hidden ...
  71. [71]
    Best practices of secure email design: Check email layout and make ...
    Jun 17, 2024 · When you use HTML in your emails, follow the structure of the actual HTML document. Do not use potentially dangerous elements, such as ...Tracking Pixels And Privacy... · Embedded Forms · Interactive Elements
  72. [72]
    21 best practices for HTML emails | Zoho Zeptomail
    May 9, 2024 · It's advisable to optimize this file size and ensure that it doesn't exceed 100kb. Many organizations have email policies set that could block ...Why Send Html Emails? · 21 Best Practices To Follow... · Assume That Images Will Be...
  73. [73]
    Email security best practices (ITSM.60.002) - Canadian Centre for ...
    Aug 26, 2025 · The inherent danger is that spoofed emails usually contain malware or viruses, as well as malicious links that point to spoofed websites or ...
  74. [74]
    HTML smuggling surges: Highly evasive loader technique ...
    Nov 11, 2021 · HTML smuggling, a highly evasive malware delivery technique that leverages legitimate HTML5 and JavaScript features, is increasingly used in email campaigns.
  75. [75]
    Web Content Accessibility Guidelines (WCAG) 2.1 - W3C
    May 6, 2025 · Web Content Accessibility Guidelines (WCAG) 2.1 covers a wide range of recommendations for making Web content more accessible.Translations of W3C standards · User Agent Accessibility · WCAG21 history · Errata
  76. [76]
    WCAG 2 Overview | Web Accessibility Initiative (WAI) - W3C
    WCAG 2 is a standard to make web content accessible to people with disabilities, with 13 guidelines under 4 principles.WCAG 2 at a Glance · What’s New in WCAG 2.1 · The WCAG 2 Documents
  77. [77]
    The Ultimate Guide to Email Accessibility in 2025 - Litmus
    Feb 7, 2025 · Make every email count for everyone. Learn how to design, write, and code emails that are inclusive and accessible to all subscribers.Missing: matrix | Show results with:matrix
  78. [78]
  79. [79]
    The Essential Email Accessibility Checklist
    Use real text, not images, ensure text alternatives for images, use strong contrast, make clear link labels, and avoid formatting tables.
  80. [80]
  81. [81]
    Email Messages | Section508.gov
    Federal government electronic content must meet Section 508 Standards, which incorporates Web Content Accessibility Guidelines (WCAG) version 2.0 A and AA ...
  82. [82]
  83. [83]
    Email Client Configuration - W3C Tools Support Wiki
    Aug 28, 2014 · In the Compose e-mail window, two buttons override the general setting, find the two "Aa" buttons and toggle between "Use HTML Formatting" and " ...
  84. [84]
    Shine Through Email Image Blocking with These Top Tips - Litmus
    Aug 17, 2021 · How can you optimize emails for images off? · Use live HTML as much as possible · Use ALT text or stylized ALT text · Mosaic pixel art.<|separator|>
  85. [85]
    Dark Mode Email: Your Ultimate How-to Guide - Litmus
    Feb 27, 2025 · Here's what we found… Email Dark Mode email client support chart (as of February 2025). Email Client, HTML Treatment in Dark Mode, @media ...
  86. [86]
    Email clients are stripping out accessibility at the expense of user ...
    May 28, 2025 · Many email clients, including Gmail, strip out code developers use to respect system-level accessibility preferences.Missing: overrides | Show results with:overrides
  87. [87]
  88. [88]
    Email Accessibility 101: Ultimate Guide to Email Accessibility in 2025
    Apr 3, 2025 · The international standard for accessibility is the Web Content Accessibility Guidelines (WCAG) 2.2. Developed by the World Wide Web ...<|separator|>