Anh Tu Pham

All generations.

<form class="login-form" action="home.html" method="POST"> <div class="form-group"> <label for="email">Email</label> <input type="email" class="form-control" id="email" placeholder="Email"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" class="form-control" id="password" placeholder="Password"> </div> </form> style for above form

.login-form { width: 400px; margin: 50px auto; } .login-form form { margin-bottom: 15px; background: #f7f7f7; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); padding: 30px; } .login-form h2 { margin: 0 0 15px; } .form-control, .btn { min-height: 38px; border-radius: 2px; } .btn { font-size: 15px; font-weight: bold; }

<form class="login-form" action="home.html" method="POST"> <div class="form-group"> <label for="email">Email</label> <input type="email" class="form-control" id="email" placeholder="Email"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" class="form-control" id="password" placeholder="Password"> </div> </form> style for above form

.login-form { width: 300px; margin: 0 auto; padding: 30px 0; } .form-group { margin-bottom: 20px; } label { color: #555; display: inline-block; margin-bottom: 5px; max-width: 100%; } .form-control { border-radius: 2px; box-shadow: none; color: #495057; display: block; font-size: 14px; height: calc(2.25rem + 2px); line-height: 1.5; padding: .625rem .75rem; transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out; width: 100%; }

generate a login form with 2 fields.

<form class="login-form" action="home.html" method="POST"> <div class="form-group"> <label for="email">Email</label> <input type="email" class="form-control" id="email" placeholder="Email"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" class="form-control" id="password" placeholder="Password"> </div> </form>

Want to kickstart your project?Use the new AI Studio to create your code