Skip to main content

Exercise 13: Login and Sign Up Forms (Finals Interactive)







(CODE FOR LOGIN HTML:)

<!DOCTYPE html>

<html>

<head>

<meta name="viewport" content="width=device-width, initial-scale=1">

<title> Login and Sign Up </title>

<link rel="stylesheet" href="Exercise13Login.css">

</head>


<body>


<form name="form">

<h2>Login</h2>

<p> Log in to Multimedia Website </p>

<div>

<label for="text"> <b> Username </b> </label>

<input  id="user"  name="user" type="text" placeholder="Username"> </div>

</div>

<div>

<label for="psw"> <b> Password </b> </label>

<input id="pass" name="pass" type="password"  placeholder="Password"> </div>

</div>

<div>

<button type="button" value="Login" onClick="validate(this.form)"> Login </button>

<button class="resetbtn" type="Reset"> Reset </button>

<hr>

<p> Don't have an account? <br> Sign up now for free! </p>

<a href="Exercise13Signup.html"> Sign Up </a>

</div>

</form>


<script src="E013 javascript.js">


</script>


</body>

</html>


(CODE FOR LOGIN CSS:)

body {

font-size: 16px;

background: #fff;

font-family: "Arial-Black","Consolas", Arial

}

* {

box-sizing: border-box;

}


h2 {

text-align: center;

text-decoration: underline;

}


input[type=text], input[type=password] {

width: 100%;

padding: 15px;

margin: 5px 0 22px 0;

display: inline-block;

border: none;

background: #ffffff;

}


input[type=text]:focus, input[type=password]:focus {

background-color: #cbc6dc

outline: none;

}


button {

background-color: Bluedaza

color: white;

padding: 14px 20px;

margin: 8px 0;

border: none;

border-radius: 5px;

cursor: pointer;

width: 100%;

opacity: 0.9;

}


button:hover {

opacity:1;

}


form {

width: 300px;

background: #000000;

padding: 0px 40px 40px;

border: 1px solid #ccc;

margin: 1.5% auto auto auto;

border-radius: 5px;

}


label {

display: block;

margin-bottom: 5px

}


label i {

color: #999;

font-size: 80%;

}


input, select {

border: 1px solid #ccc;

padding: 10px;

display: block;

width: 100%;

box-sizing: border-box;

border-radius: 2px;

}


.cancelbtn, .resetbtn {

padding: 14px 20px;

background-color: #cfa8a5;

}


.cancelbtn, .signupbtn {

width: 100%;

}


.container {

width: 300px;

background: #fff;

padding:0px 40px 40px;

border: 1px solid #ccc;

margin: 0px auto 0;

border-radius: 5px;

}


.modal {

display: none;

position: fixed;

background-color: #fff;

z-index: 1;

left: 0;

top: 0;

width: 100%;

height: 100%;

overflow: auto;

padding: 30px 0px 30px 0px;

}


.modal-content {

background-color: #fefefe;

margin: 1% auto auto auto;

border: 1px solid #888;

width: 80%;

}


hr {

border: 1px solid #cbc6dc;

margin-bottom: 25px;

}

 

.close {

position: absolute;

right: 35px;

top: 15px;

font-size: 40px;

font-weight: bold;

color: #cbc6dc;

}


.close:hover,

.close:focus {

color: #000;

cursor: pointer;

}


.form-inline {

border: 1px solid #ccc;

padding: 8px 10px 4px;

border-radius: 2px;

}


.form-inline label, .form-inline input {

display: inline-block;

width: auto;

padding-right: 15px;

}


.error {

color: red

font-size: 90%;

}


@media screen and (max-width: 300px) {

.cancelbtn, .signupbtn {

width: 100%;

}

}

(CODE FOR SIGN UP HTML:)

<!DOCTYPE html>

<html>

<head>

<meta name="viewport" content="width=device-width, initial-scale=1">

<title> Login and Signup </title>

<link rel="stylesheet" href="Exercise13Signup.css">

</head>


<body>


<div id="signup-form" class="modal">

<form class="modal-content" onsubmit="return signup()">

<div class="container">

<h2> Sign Up </h2>

<p> Create an account. </p>

<hr>

<label> <b>Username</b> </label>

<input id="username-input" type="text" placeholder="Enter Username" name="user" required>


<label> <b>Password</b> </label>

<input id="password-input" type="password" placeholder="Enter Password" name="pass" required>


<label> <b>Confirm Password</b> </label>

<input id="confirm-password-input" type="password" placeholder="Confirm Password" name="confirmPass" required>

<button type="submit" class="signupbtn"> Submit </button>

<button class="resetbtn" type="Reset"> Reset </button>

<a href="Exercise 013 Login.html"> Back to Login </a>

</div>

</form>

</div>


</body>


<script src="E013 javascript.js">


</script>


</html>


(CODE FOR SIGN UP CSS:)

body {

font-size: 16px;

background: #fff;

font-family: "Arial-Black", "Consolas", Arial

}

* {

box-sizing: border-box;

}


h2 {

text-align: center;

text-decoration: underline;

}


input[type=text],

input[type=password],

input[type=confirm-password-input] {

width: 100%;

padding: 15px;

margin: 5px 0 22px 0;

display: inline-block;

border: none;

background: #f1f1f1;

}


input[type=text]:focus,

input[type=password]:focus,

input[type=confirm-password-input]:focus. {

background-color: #ddd;

outline: none;

}


button {

background-color: Bluehaze;

color: white;

padding: 14px 20px;

margin: 8px 0;

border: none;

border-radius: 5px;

cursor: pointer;

width: 100%;

opacity: 0.9;

}


button:hover {

opacity:1;

}


form {

width: 300px;

background: #fff;

border: 1px solid #ccc;

margin: 1.5% auto auto auto;

border-radius: 5px;

}


label {

display: block;

margin-bottom: 5px

}


label i {

color: #999;

font-size: 80%;

}


input,

select {

border: 1px solid #ccc;

padding: 10px;

display: block;

width: 100%;

box-sizing: border-box;

border-radius: 2px;

}


.cancelbtn,

.resetbtn {

padding: 14px 20px;

background-color: #f1f1f1;

}


.cancelbtn,

.signupbtn {

width: 100%;

}


.container {

width: 300px;

background: #fff;

padding:0px 40px 40px;

border: 1px solid #ccc;

margin: 0px auto 0;

border-radius: 5px;

}


.modal {

display: block;

position: fixed;

background-color: #fff;

z-index: 1;

left: 0;

top: 0;

width: 100%;

height: 100%;

overflow: auto;

padding: 30px 0px 30px 0px;

}


.modal-content {

background-color: #00000;

margin: 1% auto auto auto;

border: none;

width: 80%;

}


hr {

border: 1px solid #ffffff;

margin-bottom: 25px;

}

 

.close {

position: absolute;

right: 35px;

top: 15px;

font-size: 40px;

font-weight: bold;

color: #cbc6dc

}


.close:hover,

.close:focus {

color: #000;

cursor: pointer;

}


.form-inline {

border: 1px solid #ccc;

padding: 8px 10px 4px;

border-radius: 2px;

}


.form-inline label,

.form-inline input {

display: inline-block;

width: auto;

padding-right: 15px;

}


.error {

color: red;

font-size: 90%;

}


@media screen and (max-width: 300px) {

.cancelbtn,

.signupbtn {

width: 100%;

}

}

Comments

Popular posts from this blog

Exercise 10: Animation (Finals Web Prog)

(Code for HTML:) <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Exercise 010 Animated Web page</title> <link rel="stylesheet" href="Exercise10AnimatedWebpage.css"> </head> <body> <div> <h1 style="font-size:40px;"> ABOUT MYSELF  </h1> </div> <br> <br> <br> <br> <br> <br> <br> <br>  <p style="text-align: justify; text-indent: 50px;">  Hi I'm Jillian Marren Dela Cruz. You can call me "Jill or Jillian" i'm currently 3rd year Multimedia Arts Student. 20 years of Age. I chose multimeida because i want to enchance my skills and i'm willing to learn about everything. I'm November Babies and My zodiac sign is Sagittarius. The Sagittarius Traits is Curious and energetic, Sagittarius is one of the biggest travelers among all...

Exercise 12-14: Responsive Web Design, Tutorial Web Page and Activities Compilation

 PROJECT; Tutorial about how to do the Exercise 7: Select Box Price List First the Html code for this exercise is put the usually code the "<!DOCTYPE html> <html> <head>"  if you don't put this usually code then your labored to be made is nonsense so you need this and we will go to put this meta name "<meta name="viewport" content="width=device-width, initial-scale=1">" and the Title of what exercise are you doing like this "<title>Exercise 007: JavaScript Selected Value</title>"  and also you will link this html to the .css code or file like this  "<link rel="stylesheet" href="Exercise007SelectedValueinte2.css"> </head>" Next we will go to the main exercise that we will do how to do the Price List  don't forget the body "<body>" and like the title the main font of this exercise "<h1 class="font1"> Products & Pr...

Image

<!DOCTYPE html> <html> <head> <style> header { position:fixed; font-family: 'Arial Black'; top:0px; left:0px; width:98%; height:10%; color:#FFFFFF; background-color: #CBC6DC; background-repeat: no-repeat; background-attachment: fixed; background-size: 200% 50%; font-size: 50px; padding:15px; } footer {   text-align: center;   padding-top:20px;   padding-right: 200px;   padding-bottom: 700px;   padding-left: 325px;   background-color: #FFFFF;   color: black;   font-size: 12px;   width: 500px; }  body { background-image: url('jillian.jpg'); background-repeat: no-repeat; background-attachment: fixed;yy background-size: 100% auto; padding: 90px; color: white; font-family: "Arial Black"; font-size: 15px; text-align: center; } .frame1 { background-color: #CBC6DC; color: #FFFFFF; font-family: 'Arial Black'; margin-left: 0px; padding-top: 10px; padding: 10px; float: left; width: 517px; } .frame2 { backgr...