Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!doctype html>
<html lang="en">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Bootstrap CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
  <title>Bootstrap Registration Form - Pagefist</title>
</head>

<body>
  <div class="container-fluid">
    <div class="row justify-content-center">
      <div class="col-lg-4">
        <div class="card bg-dark text-light">
          <h2 class="card-title text-light mt-3" align="center">Register</h2>
          <p class="card-text" align="center"> Please Register if you want Access our Webiste</p>
          <hr class=" border position-relative " style="width: 70%; align-self: center; margin: 0px;">
          <div class="card-body">
            <form class="row g-3 mt-3 needs-validation" action="register.php" method="post" novalidate>
              <div class="col-md-6">
                <label for="enterfirstname" class="form-label">First name</label>
                <input type="text" class="form-control rounded-pill" name="firstname" id="enterfirstname" value="" required>
                <div class="invalid-feedback">
                  Enter First Name !
                </div>
              </div>
              <div class="col-md-6">
                <label for="enterlastname" class="form-label">Last name</label>
                <input type="text" class="form-control rounded-pill" name="lastname" id="enterlastname" value="" required>
                <div class="invalid-feedback">
                  Enter Last Name !
                </div>
              </div>
              <label for="selectusername" class="form-label">Username</label>
              <div class="input-group has-validation">
                <input type="text" class="form-control rounded-pill" name="username" id="selectusername" aria-describedby="inputGroupPrepend" required>
                <div class="invalid-feedback">
                  Please Create a uniq username.
                </div>
              </div>
              <label for="enteremail" class="form-label">Email</label>
              <div class="input-group has-validation">
                <input type="email" class="form-control rounded-pill" name="email" id="enteremail" aria-describedby="inputGroupPrepend" required>
                <div class="invalid-feedback">
                  Please Enter Valid Email.
                </div>
              </div>
              <label for="enterphone" class="form-label">Mobile Number</label>
              <div class="input-group has-validation">
                <input type="numbers" class="form-control rounded-pill" name="mobile" id="enterphone" placeholder="Enter 10 digit" aria-describedby="inputGroupPrepend" required>
                <div class="invalid-feedback">
                  Please Enter Your Contact Number.
                </div>
              </div>
              <div class="col-md-3">
                <label for="selectcity" class="form-label">City</label>
                <input type="text" class="form-control rounded-pill" name="city" id="selectcity" required>
                <div class="invalid-feedback">
                  Please provide a valid city.
                </div>
              </div>
              <div class="col-md-6">
                <label for="validationCustom04" class="form-label">State</label>
                <select class="form-select rounded-pill" name="state" id="validationCustom04" required>
                  <option selected disabled value="">Choose...</option>
                  <option value="chattisgarh">Chhattisgrah</option>
                </select>
                <div class="invalid-feedback">
                  Please select a valid state.
                </div>
              </div>
              <div class="col-md-3">
                <label for="zip1" class="form-label">Zip</label>
                <input type="text" class="form-control rounded-pill" name="zip" id="zip1" required>
                <div class="invalid-feedback">
                  Please provide a valid zip.
                </div>
              </div>
              <label for="validationPassword">Password</label>
              <input type="password" class="form-control rounded-pill" id="validationPassword" minlength="8" name="password" placeholder="Password" value="" required>
              <label for="cpass">Confirm-Password</label>
              <input type="password" class="form-control rounded-pill" id="cpass" minlength="8" name="cpassword" placeholder="Password" value="" required>
              <div class="col-12">
                <div class="form-check">
                  <input class="form-check-input rounded-pill" type="checkbox" value="" id="invalidCheck" required>
                  <label class="form-check-label" for="invalidCheck">
                    Agree to terms and conditions
                  </label>
                  <div class="invalid-feedback">
                    You must agree before submitting.
                  </div>
                </div>
              </div>
              <div class="col-md-12 text-center ">
                <button class="btn btn-secondary" title="Submit Your Form" aria-label="Left Align" name="reg_user" type="submit"> <span class="fa fa-user-plus" aria-hidden="true"></span> Register</button>
              </div>
              <span class="extra-line text-center">
                <span>Already have an account?</span>
                <a href="https://codepen.io/ramkrishna-sahu/pen/mdXYKaR">Login</a>
                <!--  actually this is login.php link but i use codepen taged login.php -->
              </span>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- Optional JavaScript; choose one of the two! -->
  <!-- Option 1: Bootstrap Bundle with Popper -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
  <!-- Option 2: Separate Popper and Bootstrap JS -->
  <!-- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
    -->
</body>

</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console