Snippets Form

Responsive Registration Form

This is another example of a responsive registration form layout, designed using CSS, HTML, JavaScript, and Bootstrap framework 4. The JavaScript methods have been used to implement the validation on the input text fields. The body of the form is given the styles of font-family style as Verdana, Geneva, sans-serif, font-size as 14px, and background as #f2f2f2. The form container…

Legacy · Bootstrap 4.3.1 jQuery 3.2.1 Nov 2020 1.7K views

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>CodePen - Responsive Registration Form</title>
  <link rel="stylesheet" href="./style.css">

</head>
<body>
<!-- partial:index.partial.html -->
<div class="form_wrapper">
	<div class="form_container">
		<div class="title_container">
			<h2>Responsive Registration Form</h2>
		</div>
		<div class="row clearfix">
			<div class="">
				<form id='register-form' autocomplete="off">
					<div class="row clearfix">
						<div class="col_half">
							<div class="input_field">
								<span>
									<i aria-hidden="true" class="fa fa-user"></i>
								</span>
								<input type="text" name="name" placeholder="First Name" />
							</div>
						</div>
						<div class="col_half">
							<div class="input_field">
								<span>
									<i aria-hidden="true" class="fa fa-user"></i>
								</span>
								<input type="text" name="name" placeholder="Last Name" required />
							</div>
						</div>
					</div>
					<div class="input_field">
						<span>
							<i aria-hidden="true" class="fa fa-envelope"></i>
						</span>
						<input type="email" name="email" placeholder="Email" required />
					</div>
					<div class="input_field">
						<span><i aria-hidden="true" class="fa fa-lock">
							</i>
						</span>
						<input type="password" name="password" placeholder="Password" required />
					</div>
					<div class="input_field">
						<span>
							<i aria-hidden="true" class="fa fa-lock"></i>
						</span>
						<input type="password" name="password" placeholder="Re-type Password" required />
					</div>

					<div class="input_field radio_option">
						<span class='radio_icon'>
							<i class="fa fa-venus-mars" aria-hidden="true"></i>
						</span>
						<div class='radio_group'>
							<input type="radio" name="gender" id="gender-m" checked="true">
							<label for="gender-m">Male</label>

							<input type="radio" name="gender" id="gender-f">
							<label for="gender-f">Female</label>
						</div>
					</div>

					<div class="input_field select_option">
						<span><i id='country-icon' aria-hidden="true" class="fa fa-globe"></i>
						</span>
						<input name='country' type="text" id="country-list" list="country-datalist" placeholder='Country of Origin' autocomplete="off">
						<datalist id="country-datalist" autocomplete="off">
						</datalist>
						<div id='country-error' class=''></div>
						<!--div class="select_arrow"></div-->
					</div>
					<!--					<div class="input_field checkbox_option">
						<input type="checkbox" id="cb1">
						<label for="cb1">I agree with terms and conditions</label>
					</div>
					<div class="input_field checkbox_option">
						<input type="checkbox" id="cb2">
						<label for="cb2">I want to receive the newsletter</label>
					</div>
					<button id='check-data' class='button'>
						Check Data
					</button>
--> <input id='submit-data' class="button" type="submit" value="Register" />
				</form>
			</div>
		</div>
	</div>
</div>
<p class="credit">Developed by <a href="http://www.designtheway.com" target="_blank">Design the way</a></p>
<!-- partial -->
  <script src='https://use.fontawesome.com/723b3db6c5.js'></script><script  src="./script.js"></script>

</body>
</html>
																				

This snippet still uses Bootstrap 4.3.1, which is no longer supported. It is queued for an upgrade to Bootstrap 5.