Design a from
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Html Form Example</title>
<style>
form {
border: 1px solid #ccc;
width: 30%;
margin: auto;
padding: 20px;
border-radius: 4px;
}
label {
font-size: 21px;
font-weight: 700;
}
button,
input {
width: 100%;
outline: none;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 19px;
padding: 7px 0px;
}
button {
font-size: 21px;
font-weight: 700;
}
button:hover {
background-color: #ccc;
}
</style>
</head>
<body>
<form action="#">
<h1 style="text-align: center">Html Form</h1>
<label for="fname">First name:</label><br />
<input
type="text"
id="fname"
name="fname"
placeholder="Type your here"
/><br /><br />
<label for="lname">Last name:</label><br />
<input
type="text"
id="lname"
name="lname"
placeholder="Type your here"
/><br /><br />
<button type="submit">Submit</button>
</form>
</body>
</html>