Css media

HTML and CSS in Emails: What Works in 2022?

Email Design • HTMLDaniel Schwarz • • 6 minute read

Arguably one of the most exciting aspects of web development in recent years has been a significantly more consistent level of support for new HTML, CSS, and ECMAScript (JavaScript) standards among web browsers. However, the same cannot be said for email clients despite the introduction of new features such as media queries, flex units, rem, etc.

Let’s take a look at some of these features and how we can make them work for all email clients in 2022.

Internal CSS

Without a doubt, one of the most annoying aspects of creating emails is having to declare styles for each individual element in its style attribute (e.g. ), otherwise known as ‘inline CSS’.

Fortunately, internal CSS (i.e. styles written in an element