Skip to content

Email Verification Email

Dark, email-safe confirm-your-email template with a big bulletproof verify button, a six-digit one-time code, expiry note and footer.

Also known as: one time password email, verify email address, confirm email address

Email Verification Email live demo

Open in new tab

Pure CSS code (HTML, CSS)

An email-safe "confirm your email address" template with a dark, modern look, built from HTML tables and inline styles with no framework. It keeps the message short: a wordmark, a headline, one sentence of context, a big full-width verify button, a six-digit one-time code as an alternative, an expiry note and a compact footer.

How it works

The hidden .ev-preheader supplies the inbox preview text, including the code. The .ev-wrap table paints the deep purple background and .ev-container holds the 600px message, wrapped in a fixed-width table inside MSO conditional comments for Outlook desktop. Colors are inline and repeated as bgcolor attributes so the dark design survives clients that drop CSS backgrounds.

The card is split into several table rows that share the same background and side borders, which keeps the rounded top and bottom corners while every section stays a plain table row. The verify button is bulletproof: .ev-btn-cell is a full-width padded cell with the coral background and mso-padding-alt, and .ev-btn is a block-level link with matching padding, so the entire bar is clickable.

The "or enter this code" divider is a three-cell row whose side cells hold 1px colored table cells. The code itself is the .ev-code table: each digit sits in its own .ev-digit cell with fixed width, height, line-height and a monospace font, separated by spacer cells and a dash in the middle for readability. No images or web fonts are used.

style.css adds progressive extras only: a hover color for .ev-btn-cell, a focus ring for .ev-btn, and a mobile media query that trims .ev-pad, shrinks .ev-h1 and makes each .ev-digit smaller so the code fits narrow screens.

Customization

  • Accent color: replace #ff6b8b in .ev-btn-cell and the wordmark dot, and #5eead4 in the eyebrow text and the expiry highlight.
  • Background: change #120d24 on .ev-wrap and #1d1538 on the card rows (all rows of the card must match).
  • Code length: add or remove .ev-digit cells and their spacer cells in .ev-code, and update the digits in the preheader.
  • Digit size: edit width, height, font-size and line-height on .ev-digit, and the mobile values in style.css.
  • Expiry: change "24 hours" in the expiry row to your token lifetime; relative wording never goes stale.

Use cases

  • Account sign-ups: a big verify button confirms the new user's email address
  • Two-step checks: a six-digit one-time code works as an alternative to the button
  • Web apps: a short dark message with an expiry note keeps the focus on verification
  • Marketplaces and communities: a compact footer completes a minimal confirmation email

Accessibility

Layout tables use role="presentation", the wrapper declares lang="en", and the heading is a real <h1>. Each digit is plain text, so screen readers read the code in order. The button text is explicit ("Verify my email"), and white and light lavender text on the dark card exceed WCAG AA contrast, as does the dark label on the coral button.

Usage notes

The patterns target Outlook 2016-2021 and Microsoft 365 on Windows, Outlook.com, Gmail (web and apps), Apple Mail and iOS Mail. Some clients recolor dark emails, so test a send first. Copy style.css into a <style> block in the <head> and replace sample-token and the digits with values from your backend.

Email Verification Email at a glance

Framework
Pure CSS
Code
HTML, CSS
JavaScript
Not needed, CSS only
Dependencies
None
Layout
Responsive, works on mobile, dark design
Category
Email Templates
License
Free for personal and commercial use

Questions about this template

Can I use the Email Verification Email code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. It is built with HTML and CSS only, so there is no JavaScript to load.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Email Verification Email – Pure CSS email templates component screenshot
Email Verification Email · Pure CSS Email Templates

More Email Templates

Feedback Survey Request Email – Pure CSS email templates preview

Feedback Survey Request Email

Email-safe feedback request with a one-tap 1 to 5 rating row of links, an open survey button, a thank-you discount note and a compliant footer.

Newsletter Email with Featured Articles – Pure CSS email templates preview

Newsletter Email with Featured Articles

Email-safe editorial newsletter with masthead, featured story, two-column article grid that stacks on mobile, quick links, sponsor slot and footer.

Re-engagement We Miss You Email – Pure CSS email templates preview

Re-engagement We Miss You Email

Email-safe win-back template with a friendly headline, what's new list with thumbnails, comeback offer card, return button and one-click unsubscribe.

Order Confirmation Email – Pure CSS email templates preview

Order Confirmation Email

Email-safe order confirmation template with order number, product rows with photos, totals table, shipping and billing addresses and a track order button.

New Sign-In Security Alert Email – Pure CSS email templates preview

New Sign-In Security Alert Email

Email-safe security alert template for a new sign-in: device, browser, location, IP and time rows plus "This was me" and "Secure my account" buttons.

Promotional Sale Email with Discount Code – Pure CSS email templates preview

Promotional Sale Email with Discount Code

Email-safe sale template with a big 40% off banner, dashed discount code box, four-product price grid, bulletproof shop button and terms line.