OTP Verification Form
A six-box verification code form for email or 2FA confirmation.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="card border-0 shadow text-center" style="max-width:340px">
<div class="card-body p-4">
<h6 class="fw-bold">Verify your email</h6>
<p class="text-secondary small mb-3">Enter the 6-digit code we sent you</p>
<div class="d-flex justify-content-center gap-2 mb-3">
<input class="form-control text-center fw-bold fs-5 px-0" maxlength="1" style="width:44px">
<input class="form-control text-center fw-bold fs-5 px-0" maxlength="1" style="width:44px">
<input class="form-control text-center fw-bold fs-5 px-0" maxlength="1" style="width:44px">
<input class="form-control text-center fw-bold fs-5 px-0" maxlength="1" style="width:44px">
<input class="form-control text-center fw-bold fs-5 px-0" maxlength="1" style="width:44px">
<input class="form-control text-center fw-bold fs-5 px-0" maxlength="1" style="width:44px">
</div>
<button class="btn btn-primary w-100">Verify</button>
</div>
</div>Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.