Skip to main content
HTML Elements

<span>

HTML element · 14 supported, 0 partial, 0 unsupported across 15 clients

The <span> element is a generic inline container and is supported in every email client. It is most useful for applying inline styles (color, font-size, font-weight) to a portion of text without breaking the surrounding flow. Some clients strip <span> styling under aggressive sanitization, so critical inline styling should also be applied on a wrapping <font> or <strong> tag where appropriate.

Client Support

ClientCategoryEngineSupport
GmailwebmailGmail WebSupported
Gmail AndroidmobileGmail MobileSupported
Gmail iOSmobileGmail MobileSupported
Outlook 365webmailOutlook WebSupported
Outlook (New)desktopOutlook WebSupported
Outlook ClassicdesktopMicrosoft WordSupported
Outlook iOSmobileOutlook MobileSupported
Outlook AndroidmobileOutlook MobileSupported
Apple MaildesktopWebKitSupported
Apple Mail iOSmobileWebKitSupported
Yahoo MailwebmailYahooSupported
Samsung MailmobileSamsungSupported
ThunderbirddesktopGeckoSupported
HEY MailwebmailWebKitSupported
SuperhumandesktopBlinkUnknown

Client-by-client behaviour for <span>

Fully supports <span> (14): Gmail, Gmail Android, Gmail iOS, Outlook 365, Outlook (New), Outlook Classic, Outlook iOS, Outlook Android, Apple Mail, Apple Mail iOS, Yahoo Mail, Samsung Mail, Thunderbird, HEY Mail.

Behaviour unverified in: Superhuman.

When to use <span> in email

  • Applying brand color to the first word of a headline.
  • Inline-styling product names, prices, or dates within paragraph text.
  • Wrapping auto-detected phone numbers with explicit anchor styling to defeat client auto-linking.

Rendering behaviour and edge cases

  • Spans inherit display: inline by default and cannot accept block-level styles like width or padding-top reliably.
  • Outlook on Windows respects span inline styles but occasionally drops them when the span sits at the start of a list item.
  • Gmail rewrites class attributes on spans, so class-based styling from <style> blocks is fragile.

Recommended fallback strategy

Apply inline styles directly on <span> elements for color or font tweaks. For block-level effects, wrap spans in a <td> or <div> instead. Combine <span style="..."> with the deprecated <font> tag for double coverage on color in legacy Outlook.

Related Features

Test your email across all 15 clients

Preview rendering, catch CSS issues, and get actionable fixes — free.

Try Emailens Free

Support data last updated Apr 27, 2026 · synced from caniemail.com via @emailens/engine.