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 11: YouTube Video Link Parameters (Finals Web Prog)

(Code for HTML:) <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> Youtube Videos Link Parameters </title> <link rel="stylesheet" href="Exercise11iFrameVideo.css"> </head> <body> <div class="navbar"> <a href="#home">Home</a> <a href="https://scontent.fmnl19-1.fna.fbcdn.net/v/t1.6435-9/183696100_2901575863495019_8667639209325296233_n.jpg?_nc_cat=100&ccb=1-3&_nc_sid=0debeb&_nc_eui2=AeGmZRPZmRmXrOArSHq09vPIKfIhC24RAaYp8iELbhEBpvFlFRJZ9cKWpyHOm3J-Tle-7AutVdLWleXZ1XrgIqBW&_nc_ohc=HTCL7Rxi8jAAX8t6M2L&_nc_ht=scontent.fmnl19-1.fna&oh=98676492910e87038adfb8cd76772c33&oe=60BD0C01" target="Jillian Dela Cruz">About</a> <a href="https://scontent.fmnl19-1.fna.fbcdn.net/v/t1.6435-9/184092486_2901582303494375_8241790509753611562_n.jpg?_nc_cat=102&am

12 Months/ Finding the Events

  <html> <body style="background-color:#CBC6DC;"> <h2><p style="font-family:century gothic;"> ENTER NUMBER OF MONTH:</p></h2> <br><input id="text_a" type="text;" /> <p id="answer"></p> <button onclick="myFunction()">Submit</button> <script> function myFunction() { var a=document.getElementById("text_a").value; if (a=="1")   { document.getElementById("answer").innerHTML="1 - January, New Year";   } else if (a=="2")   {