Skip to content

Instantly share code, notes, and snippets.

@mitiko
Created September 14, 2023 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitiko/0858c76fb035fafdcc5e799471e941b7 to your computer and use it in GitHub Desktop.
Save mitiko/0858c76fb035fafdcc5e799471e941b7 to your computer and use it in GitHub Desktop.
Login page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<style>
html, body { margin: 0; padding: 0; }
body {
display: grid;
place-items: center;
min-height: 80vh;
font-family: sans-serif;
}
label, input { margin-block: 0.3rem; }
</style>
</head>
<body>
<main>
<h1>Login</h1>
<form method="post" >
<label for="username">User:</label><br>
<input type="text" id="username" name="username"><br>
<br>
<label for="password">Password:</label><br>
<input type="password" id="password" name="password"><br>
<input type="submit">
</form>
</main>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment