"SAD assignment"
Bootstrap 4.1.1 Snippet by gohyee

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <html> <header> </header> <body> <div class="container"> <form class="form-horizontal"> <fieldset> <!-- Form Name --> <legend>Employee Information</legend> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="First Name">First Name</label> <div class="col-md-4"> <input id="First Name" name="First Name" type="text" placeholder="Enter your first name" class="form-control input-md" required> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="Lastname">Last Name</label> <div class="col-md-4"> <input id="Lastname" name="Lastname" type="text" placeholder="Enter your last name" class="form-control input-md" required> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="Emailaddress">Email Address</label> <div class="col-md-4"> <input id="Emailaddress" name="Emailaddress" type="text" placeholder="Enter your email address" class="form-control input-md" required> </div> </div> <!-- Button Drop Down --> <div class="form-group"> <label class="col-md-4 control-label" for="gender">Choose your gender</label> <div class="col-md-4"> <div class="input-group"> <input id="gender" name="gender" class="form-control" placeholder="Gender" type="text"> <div class="input-group-btn" required> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> Gender <span class="caret"></span> </button> <ul class="dropdown-menu pull-right"> <li><a href="#">Male</a></li> <li><a href="#">Female</a></li> </ul> </div> </div> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="phone">Phone Number</label> <div class="col-md-4"> <input id="phone" name="phone" type="text" placeholder="Enter your phone number" class="form-control input-md" required> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="home">Home Address</label> <div class="col-md-6"> <input id="home" name="home" type="text" placeholder="Enter your home address" class="form-control input-md" required> </div> </div> <!-- Button (Double) --> <div class="form-group" > <label class="col-md-4 control-label" for="submit">Do you want to submit?</label> <div class="col-md-8"> <input type="submit" onclick="clicked(event)" /> <script> function clicked(e) { if(!confirm('Are you sure?')) { e.preventDefault(); } } </script> </div> </fieldset> </form> </div> </body> <footer> </footer> </html>
body {background-image: url('https://wallpaperaccess.com/full/4321838.jpg');} .container { width: 45%; padding: 12px; opacity: 0.88; border: 10px solid #B0E0E6; background-color:#F0FFFF; border-radius: 6px; box-sizing: border-box; resize: vertical; } header { clear: left; margin: 0 auto; height: 150px; padding: 20px; } footer { clear: left; margin: 0 auto; height: 20px; padding: 20px; }

Related: See More


Questions / Comments: