Skip to content
HTML Templates For Developers

Sixdigit — OTP Verification Form

A dark, technical OTP screen with six auto-advancing inputs, paste support, resend countdown, wrong-code shake and an animated success state.

FreeVanilla HTMLOne-page
Sixdigit — OTP Verification Form — template preview

Live preview

This is the actual template running in a sandbox, shown at 1280px wide.

Description

Sixdigit is a one-screen verification template for two-factor and device-confirmation flows. It sits on a dark navy grid with cyan accents, Chakra Petch headings and DM Mono digits, and frames the code entry in a bracketed console panel.

Six separate inputs behave like one control. Typing advances to the next box, backspace walks backwards, the arrow keys move between boxes, letters are rejected, and pasting a full code (or receiving it from the browser's one-time-code autofill) fills every box at once. The numeric keyboard is requested with inputmode and the first box carries autocomplete="one-time-code".

A thirty-second resend countdown unlocks the resend button when it ends. A wrong code empties the boxes, turns them red, announces an error and shakes the group; visitors who prefer reduced motion get the same feedback without movement. The correct code swaps to a drawn check-mark success state.

Key features

  • Six inputs with auto-advance, arrow keys and backspace navigation
  • Paste or autofill of a full code fills all boxes and submits
  • inputmode="numeric" and autocomplete="one-time-code" for mobile keyboards and SMS autofill
  • Resend countdown that enables the button when it reaches zero
  • Wrong-code shake with a reduced-motion fallback and role=alert message
  • Animated SVG check-mark success state with a run-again button
  • Labelled demo-code hint with a one-click fill button
  • Self-hosted Chakra Petch and DM Mono, inline SVG artwork
  • Design tokens for colour, type and digit size in :root

Front-end template: what is demonstration only

  • No text message is sent, nothing is stored and no real authentication happens: the code is compared with a demo value (482913) in JavaScript.
  • The resend button only restarts the countdown; it does not send anything.

What is included

Pages and sections

  • Brand bar with channel status
  • Bracketed console panel
  • Six-digit code inputs
  • Verify button
  • Resend countdown
  • Demo code hint
  • Success state

Framework

Plain HTML5, CSS3 and JavaScript. No framework, no build step — open index.html and edit.

Bundled open-source components

  • Chakra Petch typeface (OFL-1.1)
  • DM Mono typeface (OFL-1.1)

Everything is inside the download with its licence. Nothing loads from a CDN.

Supported browsers

Chrome, Edge, Firefox, Safari, Opera

Current versions. Checked in Chromium at desktop, tablet and phone widths.

Files in the download (15) · 88 KB ZIP
  • LICENSE.txt1.3 KB
  • README.md2.6 KB
  • assets/css/style.css13 KB
  • assets/fonts/chakra-petch-LICENSE.txt5.3 KB
  • assets/fonts/chakra-petch-latin-400-normal.woff29.5 KB
  • assets/fonts/chakra-petch-latin-500-normal.woff29.7 KB
  • assets/fonts/chakra-petch-latin-600-normal.woff29.7 KB
  • assets/fonts/chakra-petch-latin-700-normal.woff29.7 KB
  • assets/fonts/dm-mono-LICENSE.txt4.8 KB
  • assets/fonts/dm-mono-latin-400-normal.woff214 KB
  • assets/fonts/dm-mono-latin-500-normal.woff215 KB
  • assets/images/favicon.svg461 B
  • assets/js/main.js7.5 KB
  • documentation/index.html12 KB
  • index.html5.8 KB

Includes a README, a documentation page with customisation notes, and the licence text.

Read the documentation

Changelog

  1. Version 1.0.0 Nov 23, 2026Current

    • Initial release.

Licence

Free Template Licence. Use it in unlimited personal and commercial projects, modify it freely and use it in client work. You may not redistribute or resell the template itself. Attribution is appreciated, not required.

Read the full licence terms

Customer reviews

No reviews yet. Reviews come only from customers who have downloaded or bought this template.

Write a review