Understanding email client compatibility and HTML tag support
Many HTML tags are not supported in emails due to email client limitations and security restrictions. Unsupported tags include JavaScript tags (<script>, <iframe>), interactive elements (<form>, <input>, <button>), modern HTML5 tags (<video>, <audio>, <canvas>), CSS3 features (animations, flexbox, grid), and certain styling tags (<style> in body).
Email clients strip unsupported tags for security and compatibility reasons. Use table-based layouts, inline styles, and email client-compatible HTML instead. Validate HTML using our HTML validator and test emails in multiple clients to ensure compatibility.
Understanding unsupported tags helps create email HTML that renders correctly across email clients.
JavaScript tags (<script>) are not supported in emails for security reasons. Email clients strip JavaScript to prevent malicious code execution.
<iframe> tags are not supported in emails. Email clients block iframes for security reasons.
Inline event handlers (onclick, onload, etc.) are not supported or are stripped by email clients.
JavaScript and iframes are blocked to prevent security vulnerabilities, malicious code execution, and phishing attacks.
Form elements (<form>, <input>, <button>, <select>) are not supported in emails. Email clients strip forms for security reasons.
All input types are unsupported, including text, email, password, checkbox, radio, and file inputs.
<button> tags are often stripped. Use <a> tags styled as buttons instead.
Use links to landing pages with forms instead of embedding forms in emails.
Modern HTML5 media tags (<video>, <audio>, <canvas>) are not supported in emails. Email clients don't support embedded media.
Many HTML5 semantic tags (<section>, <article>, <nav>, <header>, <footer>) may not be supported or render inconsistently.
HTML5 features like data attributes, contenteditable, and other modern features are not supported in emails.
Use traditional HTML4 and table-based layouts for maximum email client compatibility.
External stylesheets (<link> tags) are not supported. Email clients strip external CSS references.
<style> tags in the email body are often stripped. Use inline styles instead.
CSS3 features like animations, transitions, flexbox, grid, and advanced selectors are not supported or render inconsistently.
Use inline styles and table-based layouts for consistent email rendering across clients.
Use HTML tables for layout instead of CSS-based layouts for maximum email client compatibility.
Use inline styles instead of external stylesheets or style tags for consistent rendering.
Avoid JavaScript, forms, iframes, and modern HTML5 tags that aren't supported in emails.
Test emails in multiple email clients to ensure compatibility and proper rendering.
Use our HTML validator to identify unsupported tags and validate email HTML.
Follow email HTML standards and best practices for maximum compatibility across email clients.