</> ConvertAtlas Developer Tools
Bootstrap 5 · Beginner

Floating Label Form

A form card using Bootstrap floating labels for inputs and a select.

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-sm" style="max-width:340px">
  <div class="card-body p-4">
    <h6 class="fw-bold mb-3">Floating labels</h6>
    <div class="form-floating mb-3"><input type="email" class="form-control" id="fe" placeholder="x"><label for="fe">Email address</label></div>
    <div class="form-floating mb-3"><input type="password" class="form-control" id="fp" placeholder="x"><label for="fp">Password</label></div>
    <div class="form-floating"><select class="form-select" id="fs"><option>Free</option><option>Pro</option></select><label for="fs">Plan</label></div>
  </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.