You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
780 B
HTML

1 year ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Centered Form Example</title>
<style>
body {
background-color: #ffffff00;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
form {
width: 300px;
padding: 20px;
border: 1px solid darkblue;
border-radius: 5px;
}
input {
width: 80%;
margin-bottom: 10px;
padding: 5px;
}
</style>
</head>
<body>
<form>
<h2>Centered Form</h2>
<input type="text" placeholder="Name" required autocomplete >
<input type="email" placeholder="Email">
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</form>
</body>
</html>