About this ebook
Learn the secrets that HTML email pros use to create effective emails that work well in every single email client!
Emails are part of almost every web project, from password reset to order confirmations to marketing emails. Yet coding HTML emails is dreaded among even the most experienced web developers as they can be tricky, given the multiple quirks of different email clients. This short book explains modern HTML email best practices, from how to deal with multiple email clients, to adding interactivity (yes you can do that!), to accessibility, and more. We'll finish with a complete case study: a redesign of SitePoint's very own email newsletter. Stop worrying about HTML email and learn to love the craft!
Remi Parmentier
Remi Parmentier is a French front-end developer working at his own small web development agency, Tilt Studio. He loves to learn, and enjoys even more to teach. This led him on a joyful quest to understand and demystify HTML email coding. Remi runs workshops, gives talks and writes articles on his blog to help others code better HTML emails.
Related to Crafting HTML Email
Related ebooks
Instant HTML5 Responsive Table Design How-to Rating: 0 out of 5 stars0 ratingsWeb Design With Html5, a Primer Rating: 0 out of 5 stars0 ratingsCMS Made Simple 1.6 Beginner's Guide Rating: 5 out of 5 stars5/5Web Development Essentials: A Beginner's Guide to HTML, CSS, JavaScript, and SEO: HTML 101 : Beginner to pro Rating: 0 out of 5 stars0 ratingsWeb Development Step by Step Rating: 0 out of 5 stars0 ratingsGetting Started with Bootstrap 3.2 Rating: 0 out of 5 stars0 ratingsHTML& CSS for Beginners: Learn the Fundamentals of Computer Programming Rating: 0 out of 5 stars0 ratingsMastering Responsive Web Design with HTML5 and CSS3 Rating: 0 out of 5 stars0 ratingsResponsive Media in HTML5 Rating: 0 out of 5 stars0 ratingsWordPress 2019: The Beginner's Complete Step-by-Step Guide to Creating a Mobile Friendly Website with WordPress Rating: 0 out of 5 stars0 ratingsBeginning CSS: Cascading Style Sheets for Web Design Rating: 4 out of 5 stars4/5JavaScript Mobile Application Development Rating: 0 out of 5 stars0 ratingsResponsive Design High Performance Rating: 0 out of 5 stars0 ratingsLearn Angular: Build a Todo App Rating: 0 out of 5 stars0 ratingsCSS Mastery: Styling Web Pages Like a Pro Rating: 0 out of 5 stars0 ratingsJump Start Sass: Get Up to Speed With Sass in a Weekend Rating: 0 out of 5 stars0 ratingsPHP Ajax Cookbook Rating: 2 out of 5 stars2/5Jump Start PHP Environment: Master the World's Most Popular Language Rating: 0 out of 5 stars0 ratingsWordPress 3 Plugin Development Essentials Rating: 4 out of 5 stars4/5Web Design Blueprints Rating: 0 out of 5 stars0 ratingsMastering Sass Rating: 0 out of 5 stars0 ratingsA Pythonic Adventure: From Python basics to a working web app Rating: 0 out of 5 stars0 ratingsQuick Guide for Smart Contracts Creation and Deployment on Ethereum Blockchain Rating: 0 out of 5 stars0 ratingsMission HTML Rating: 0 out of 5 stars0 ratingsUltimate Git and GitHub for Modern Software Development Rating: 0 out of 5 stars0 ratingsSass and Compass for Designers Rating: 0 out of 5 stars0 ratingsSass and Compass Designer's Cookbook Rating: 0 out of 5 stars0 ratingsLearning WordPress REST API Rating: 0 out of 5 stars0 ratings
Programming For You
Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5C All-in-One Desk Reference For Dummies Rating: 5 out of 5 stars5/5PYTHON PROGRAMMING Rating: 4 out of 5 stars4/5JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsPython Data Structures and Algorithms Rating: 5 out of 5 stars5/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Python for Data Science For Dummies Rating: 0 out of 5 stars0 ratingsBeginning Programming with Python For Dummies Rating: 3 out of 5 stars3/5The Recursive Book of Recursion: Ace the Coding Interview with Python and JavaScript Rating: 0 out of 5 stars0 ratingsLearn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Learn NodeJS in 1 Day: Complete Node JS Guide with Examples Rating: 3 out of 5 stars3/5Escape the Game: How to Make Puzzles and Escape Rooms Rating: 3 out of 5 stars3/5
Reviews for Crafting HTML Email
0 ratings0 reviews
Book preview
Crafting HTML Email - Remi Parmentier
Preface
Who Should Read This Book?
This book is for anyone who wants to better understand how to write effective HTML emails. No prior experience of creating emails is required, but you should have experience of HTML and CSS.
Conventions Used
Code Samples
Code in this book is displayed using a fixed-width font, like so:
A Perfect Summer's Day
It was a lovely day for a walk in the park.
The birds were singing and the kids were all back at school.
You’ll notice that we’ve used certain layout styles throughout this book to signify different types of information. Look out for the following items.
Tips, Notes, and Warnings
Hey, You!
Tips provide helpful little pointers.
Ahem, Excuse Me ...
Notes are useful asides that are related—but not critical—to the topic at hand. Think of them as extra tidbits of information.
Make Sure You Always ...
... pay attention to these important points.
Watch Out!
Warnings highlight any gotchas that are likely to trip you up along the way.
Supplementary Materials
https://www.sitepoint.com/community/ are SitePoint’s forums, for help on any tricky problems.
[email protected] is our email address, should you need to contact us to report a problem, or for any other reason.
Getting Started
HTML email is a part of pretty much every project, but even many of the most experienced web developers dread having to work with it. This book will explore the ins and outs of coding modern HTML emails, showing you how to love the craft rather than fear it.
Email Isn’t Dead
Email was born in 1971. And it died in 2007, according to FastCompany. Or in 2009, according to The Wall Street Journal. Or maybe it was in 2011, according to Mark Zuckerberg. No one really seems to know.
What we do know, however, is that email is still highly effective:
Email drives an ROI of $36 for every dollar spent
, according to email marketing platform Litmus.
Four billion people use email daily, according to data platform Statista.
In 2021, 41.5% of brands interrogated in the Litmus State of Email report consider email marketing to be critical to company success—an 8.7% increase from just three years earlier.
The following diagram shows the percentage of brands for whom email marketing is critical to success, rising from 32.8% in 2018 to 41.5% in 2021.
Brands whose email martketing is critical to company success, rising from 32.8% in 2018 to 41.5% in 2021According to Harvard law professor Jonathan Zittrain (quoted by The Atlantic), one reason email is still so strong after all these years is that Email is the last great unowned technology
. This arguably makes it more resilient and robust than any proprietary technology. So it certainly seems that email is here to stay!
HTML Emails Aren’t Stuck in the 1990s
Discussions surrounding the coding of HTML emails on social networks never fail: someone will always snarkily comment on how HTML emails are stuck in the 1990s. And there’s nothing that irritates me more—because it’s completely wrong!
A collection of snarky comments is pictured below, sourced from my 2019 "Think Like an Email Geek" presentation.
“Email is coded the way we coded the web in 1999” and other snarky comments about HTML emailsWhen I code an HTML email, I use plenty of modern styles: media queries (including ones for dark mode), CSS gradients and background images, Flexbox, and even CSS Grid. I also use semantic HTML: heading elements