how to make login page in html code example
Example 1: sign up or log in html
<html>
<head>
<title>
Log In or Sign Up
</title>
</head>
<body>
<div>
<input type="textarea" placeholder="Enter your username">
<br>
<br>
<input type="password" placeholder="Enter your username">
<br>
<br>
<input type="submit" value="Log In">
<br>
<br>
</div>
<div>
<p>
Or Sign Up!
</p>
<br>
<br>
<input type="textarea" placeholder="Create a username">
<br>
<br>
<input type="password" placeholder="Create a password">
<br>
<br>
<input type="submit" value="Sign Up">
</div>
</body>
</html>
Example 2: html login page
<html>
<head>
<title>Account</title>
<style>
body
{
background-color:#ffda08;
}
table
{
border:1px white;
margin-top:200px;
margin-left:500px;
background-color:white;
padding:20px
}
#btn
{
width:200px;
height:50px;
background-color:#1ee3d2;
}
</style>
</head>
<body>
<form name=frmNewAcc>
<table border=0 cellspacing=5px>
<tr>
<th colspan=3><input class=in =text name=txtuname placeholder="Enter your account name"></th>
</tr>
<tr>
<th colspan=3><input class=in type=password name=txtupass placeholder="Enter your new password"></th>
</tr>
<tr>
<th colspan=3><input class=in type=password name=txtuconfirmpass placeholder="Enter confirmed password"></th>
</tr>
<tr>
<th colspan=3><input id=btn type=button value="Create new account"></th>
<a href="Login task 1.html">Go back to login</a>
</tr>
</table>
</form>
</body>
</html>
Example 3: how to make a html login page
<!doctype html>
<form name="loginForm" method="post" action="index.html">
<table width="20%" bgcolor="0099CC" align="center">
<tr>
<td colspan=2><center><font size=4><b>light-net login</b></font></center></td>
</tr>
<tr>
<td>Username:</td>
<td><input type="text" size=25 name="user"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="Password" size=25 name="pass"></td>
</tr>
<tr>
<td ><input type="Reset"></td>
<td><input type="submit" onclick="return check(this.form)" value="Login"></td>
</tr>
</table>
</form>
<script language="javascript">
function check(form)
{
if(form.user.value == "public" && form.pass.value == "peasants")
{
return true;
}
else
{
alert("Error Password or Username")
return false;
}
}
</script>
Example 4: login html
{% extends '!!!!!ALERT_CHANGE_THIS_ALERT!!!!!!!/base.html' %}
{% load crispy_forms_tags %}
{% block title %}
<title>Login</title>
{% endblock %}
{% block body %}
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col-5 border shadow rounded p-4">
<h1 class="font-weight-lighter text-center">Login</h1>
<form method="POST">
{% csrf_token %}
{{ form | crispy }}
<button class="btn btn-outline-secondary btn-block mt-4">
Login
</button>
</form>
</div>
</div>
</div>
{% endblock %}